Is there a simple kubectl command to take a kubeconfig file (that contains a cluster+context+user) and merge it into the ~/.kube/config file as an
kubectl
kubeconfig
Do this:
export KUBECONFIG=~/.kube/config:~/someotherconfig kubectl config view --flatten
You can then pipe that out to a new file if needed.