From ea1ed02c8bbe5a16bdb37629bc972d605bf72389 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Tue, 3 May 2022 09:08:07 +1000 Subject: [PATCH] Set name of original vcluster secret so matches that copied into the workshop namespace and vcluster_secret variable. --- session-manager/handlers/application_vcluster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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": {