drone-runner-charts/templates/secrets.yaml
Markus Pesch 7eb1e76c40
All checks were successful
continuous-integration/drone/push Build is passing
fix: forward release.namespace to drone default namespace
2021-08-17 20:58:57 +02:00

20 lines
493 B
YAML

apiVersion: v1
kind: Secret
metadata:
name: {{ include "droneRunner.fullname" . }}
type: Opaque
stringData:
{{- if not (hasKey .Values "config") -}}
{{- $_ := 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 }}
{{ end }}