From 168bb43cb1858cef0e62c4490dd0fc35a55d6e57 Mon Sep 17 00:00:00 2001 From: hongming Date: Mon, 16 Dec 2024 18:47:59 +0800 Subject: [PATCH] chore: add helm release namespace check (#6315) Signed-off-by: hongming (cherry picked from commit 65eb534ed9eae4a0d85f0dd62f468633d73b9f71) --- config/ks-core/templates/kubesphere-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/ks-core/templates/kubesphere-config.yaml b/config/ks-core/templates/kubesphere-config.yaml index 56d4b99fe..447f4cc12 100644 --- a/config/ks-core/templates/kubesphere-config.yaml +++ b/config/ks-core/templates/kubesphere-config.yaml @@ -1,3 +1,8 @@ +{{- if ne .Release.Namespace "kubesphere-system" }} +{{- fail "This Helm release must be installed in the 'kubesphere-system' namespace." }} +{{- end }} + +--- apiVersion: v1 kind: ConfigMap metadata: