diff --git a/session-manager/handlers/application_vcluster.py b/session-manager/handlers/application_vcluster.py index 660077d9..142f4f52 100644 --- a/session-manager/handlers/application_vcluster.py +++ b/session-manager/handlers/application_vcluster.py @@ -44,7 +44,7 @@ def vcluster_session_objects_list(application_properties): "rules": [ { "sourceSecret": { - "name": "vc-my-vcluster", + "name": "$(session_namespace)-vc-kubeconfig", "namespace": "$(session_namespace)-vc", }, "targetNamespaces": { @@ -245,6 +245,7 @@ def vcluster_session_objects_list(application_properties): "--name=my-vcluster", "--tls-san=my-vcluster.$(session_namespace)-vc.svc.cluster.local", "--out-kube-config-server=https://my-vcluster.$(session_namespace)-vc.svc.cluster.local", + "--out-kube-config-secret=$(session_namespace)-vc-kubeconfig" ], "livenessProbe": { "httpGet": {