Created
March 6, 2023 10:46
-
-
Save JoooostB/668d10301332ffdb2aa74b48d64c8d95 to your computer and use it in GitHub Desktop.
Merge all Kubernetes cluster config files into one
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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