Skip to content

Commit

Permalink
[charts] add (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfordjody committed Sep 22, 2024
1 parent 1d6aa24 commit 849acf3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions deploy/charts/admin/templates/admin/admin-ns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: {{ template "admin.namespace" . }}
labels:
{{- include "admin.labels" . | nindent 4 }}


4 changes: 2 additions & 2 deletions deploy/charts/admin/templates/custom/_namespaces.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down

0 comments on commit 849acf3

Please sign in to comment.