This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new 849acf34 [charts] add (#363)
849acf34 is described below
commit 849acf3405c993a993d12dd17a4506b659ae1db2
Author: mfordjody <[email protected]>
AuthorDate: Sun Sep 22 10:49:07 2024 +0800
[charts] add (#363)
---
deploy/charts/admin/templates/admin/admin-ns.yaml | 8 ++++++++
deploy/charts/admin/templates/custom/_namespaces.tpl | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/deploy/charts/admin/templates/admin/admin-ns.yaml
b/deploy/charts/admin/templates/admin/admin-ns.yaml
new file mode 100644
index 00000000..cfe6d0a3
--- /dev/null
+++ b/deploy/charts/admin/templates/admin/admin-ns.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+ name: {{ template "admin.namespace" . }}
+ labels:
+ {{- include "admin.labels" . | nindent 4 }}
+
+
diff --git a/deploy/charts/admin/templates/custom/_namespaces.tpl
b/deploy/charts/admin/templates/custom/_namespaces.tpl
index 66c1dea5..db10b5ea 100644
--- a/deploy/charts/admin/templates/custom/_namespaces.tpl
+++ b/deploy/charts/admin/templates/custom/_namespaces.tpl
@@ -4,8 +4,8 @@ Return Admin Namespace to use.
{{- define "admin.namespace" -}}
{{- if .Values.namespaceOverride }}
{{- .Values.namespaceOverride }}
-{{- else -}}
-{{- .Release.Namespace }}
+{{- else if not (empty .Release.Namespace) -}}
+{{- "dubbo-system" | default }}
{{- end }}
{{- end }}