1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

make ServiceAccount kubeconfig context name different from the cluster name

Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
Jim Ehrismann 2023-03-29 18:34:17 -04:00
parent a5d458bd97
commit 3fcfc219bc

View File

@ -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(),