KUBECONFIG=~/.kube/config:$(find ~/.kube -type f -name ‘*.config’ | tr ‘\n’ ‘:’) kubectl config view –flatten > ~/.kube/config

inspiration