Skip to content

Instantly share code, notes, and snippets.

@JoooostB
Created March 6, 2023 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoooostB/668d10301332ffdb2aa74b48d64c8d95 to your computer and use it in GitHub Desktop.
Save JoooostB/668d10301332ffdb2aa74b48d64c8d95 to your computer and use it in GitHub Desktop.
Merge all Kubernetes cluster config files into one
...
if [ -d ~/.kube/configs ]; then
if [ -z "$KUBECONFIG_MANUAL" ]; then
export KUBECONFIG=$(find -L ~/.kube/configs -name "*.yaml" -type f 2>/dev/null | xargs -I % echo -n ":%")
fi
fi
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment