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:
parent
a5d458bd97
commit
3fcfc219bc
@ -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(),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user