Created
July 7, 2020 14:41
-
-
Save JanHolger/006f86f9dda8bf94af25b28166d2a965 to your computer and use it in GitHub Desktop.
Merges Kubernetes Configs from ~/.kube/config.d into ~/.kube/config for use with kubectx
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
#!/bin/bash | |
FILES="nonexistent" | |
for f in ~/.kube/config.d/* | |
do | |
FILES="${FILES}:${f}" | |
done | |
KUBECONFIG=$FILES kubectl config view --merge --flatten > ~/.kube/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment