mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make ServiceAccount kubeconfig context name differ from cluster context name (#7433)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
de0ee4e6f4
commit
37c92c8fd1
@ -84,7 +84,7 @@ function generateKubeConfig(username: string, secret: V1Secret, cluster: Cluster
|
|||||||
],
|
],
|
||||||
"contexts": [
|
"contexts": [
|
||||||
{
|
{
|
||||||
"name": cluster.contextName.get(),
|
"name": [cluster.contextName.get(), username].join("-"),
|
||||||
"context": {
|
"context": {
|
||||||
"user": username,
|
"user": username,
|
||||||
"cluster": cluster.contextName.get(),
|
"cluster": cluster.contextName.get(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user