In provider-kubeconfig.py, we should provide a flag to input name of the cluster. This name will be used in setting the value of the context attribute, along with the cluster name, in the generated kubeconfig file. Right now, we set the cluster name and the context name to the name of the ServiceAccount that is being generated. But this is not very useful when switching contexts between clusters.
We can name the flag "-x"
In provider-kubeconfig.py, we should provide a flag to input name of the cluster. This name will be used in setting the value of the context attribute, along with the cluster name, in the generated kubeconfig file. Right now, we set the cluster name and the context name to the name of the ServiceAccount that is being generated. But this is not very useful when switching contexts between clusters.
We can name the flag "-x"