From c30966e9a553cf85a75f2543bd8789b8a9b6a92e Mon Sep 17 00:00:00 2001 From: erjxsrn Date: Tue, 21 Oct 2025 15:40:47 +0100 Subject: [PATCH 1/4] Added changes for independent namespace --- .../templates/network-policy/network-policy.yaml | 3 +++ charts/eric-oss-hello-world-python-app/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/charts/eric-oss-hello-world-python-app/templates/network-policy/network-policy.yaml b/charts/eric-oss-hello-world-python-app/templates/network-policy/network-policy.yaml index 6dc9da5..6b6fa2e 100644 --- a/charts/eric-oss-hello-world-python-app/templates/network-policy/network-policy.yaml +++ b/charts/eric-oss-hello-world-python-app/templates/network-policy/network-policy.yaml @@ -24,6 +24,9 @@ spec: - podSelector: matchLabels: app: eric-pm-server + - namespaceSelector: + matchLabels: + kubernetes.io/metadata.name: {{ .Values.eic.namespace }} ports: - protocol: TCP port: {{ index .Values.service "http-port" }} diff --git a/charts/eric-oss-hello-world-python-app/values.yaml b/charts/eric-oss-hello-world-python-app/values.yaml index 112f0a7..3894caf 100644 --- a/charts/eric-oss-hello-world-python-app/values.yaml +++ b/charts/eric-oss-hello-world-python-app/values.yaml @@ -135,3 +135,7 @@ global: secret: clientIdKey: "clientId" name: "-cc" + +#TODO: Update if required +eic: + namespace: "namespace" \ No newline at end of file From 3a8488c7b12d6cf901372a12a8723a5b2554c8e1 Mon Sep 17 00:00:00 2001 From: erjxsrn Date: Tue, 21 Oct 2025 16:04:27 +0100 Subject: [PATCH 2/4] Modified the values for namespace field --- charts/eric-oss-hello-world-python-app/values.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/charts/eric-oss-hello-world-python-app/values.yaml b/charts/eric-oss-hello-world-python-app/values.yaml index 3894caf..a1fe43e 100644 --- a/charts/eric-oss-hello-world-python-app/values.yaml +++ b/charts/eric-oss-hello-world-python-app/values.yaml @@ -136,6 +136,5 @@ global: clientIdKey: "clientId" name: "-cc" -#TODO: Update if required eic: - namespace: "namespace" \ No newline at end of file + namespace: From edf2affc82937bab779e7b4b7df805955efa5af4 Mon Sep 17 00:00:00 2001 From: erjxsrn Date: Wed, 22 Oct 2025 13:59:36 +0100 Subject: [PATCH 3/4] Updated the default values of helm variables --- charts/eric-oss-hello-world-python-app/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/eric-oss-hello-world-python-app/values.yaml b/charts/eric-oss-hello-world-python-app/values.yaml index a1fe43e..193c47e 100644 --- a/charts/eric-oss-hello-world-python-app/values.yaml +++ b/charts/eric-oss-hello-world-python-app/values.yaml @@ -133,8 +133,8 @@ instantiationDefaults: global: clientCredentials: secret: - clientIdKey: "clientId" - name: "-cc" + clientIdKey: + name: eic: namespace: From 6ae8a869ff97a7b353c2bf93025559230bf75e8e Mon Sep 17 00:00:00 2001 From: erjxsrn Date: Wed, 22 Oct 2025 14:02:29 +0100 Subject: [PATCH 4/4] Added a comment in values.yaml for user --- charts/eric-oss-hello-world-python-app/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/eric-oss-hello-world-python-app/values.yaml b/charts/eric-oss-hello-world-python-app/values.yaml index 193c47e..81fe1fe 100644 --- a/charts/eric-oss-hello-world-python-app/values.yaml +++ b/charts/eric-oss-hello-world-python-app/values.yaml @@ -130,6 +130,8 @@ instantiationDefaults: proxyCaCertMountPath: "/etc/certs/ca" proxyAppCertMountPath: "/etc/certs/app" +# Below variables values are populated by App Manager automatically + global: clientCredentials: secret: