Make ServiceAccount kubeconfig context name differ from cluster context name (#7433)

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann authored and GitHub committed 2023-03-31 10:37:59 -04:00
1 parent de0ee4e6f4
commit 37c92c8fd1
1 file changed
+1 -1
@@ -84,7 +84,7 @@ function generateKubeConfig(username: string, secret: V1Secret, cluster: Cluster
],
"contexts": [
{
"name": cluster.contextName.get(),
"name": [cluster.contextName.get(), username].join("-"),
"context": {
"user": username,
"cluster": cluster.contextName.get(),