From 7eb1e76c405eba8c64e48bcedaaa6d4bcb5e4b3c Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 17 Aug 2021 20:58:57 +0200 Subject: [PATCH] fix: forward release.namespace to drone default namespace --- templates/secrets.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/secrets.yaml b/templates/secrets.yaml index da6b799..c0bf1d5 100644 --- a/templates/secrets.yaml +++ b/templates/secrets.yaml @@ -9,6 +9,10 @@ stringData: {{- $_ := set .Values "config" dict -}} {{- end -}} + {{- if not (hasKey .Values.config "DRONE_NAMESPACE_DEFAULT") -}} + {{- $_ := set .Values.config "DRONE_NAMESPACE_DEFAULT" .Release.Namespace -}} + {{- end -}} + {{/* SETUP CONFIG */}} {{ range $key, $value := .Values.config }} {{ upper $key}}: {{ quote $value }}