2021-08-17 18:21:12 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: {{ include "droneRunner.fullname" . }}
|
|
|
|
type: Opaque
|
|
|
|
stringData:
|
|
|
|
|
|
|
|
{{- if not (hasKey .Values "config") -}}
|
|
|
|
{{- $_ := set .Values "config" dict -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2021-08-17 18:58:57 +00:00
|
|
|
{{- if not (hasKey .Values.config "DRONE_NAMESPACE_DEFAULT") -}}
|
|
|
|
{{- $_ := set .Values.config "DRONE_NAMESPACE_DEFAULT" .Release.Namespace -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2021-08-17 18:21:12 +00:00
|
|
|
{{/* SETUP CONFIG */}}
|
|
|
|
{{ range $key, $value := .Values.config }}
|
|
|
|
{{ upper $key}}: {{ quote $value }}
|
|
|
|
{{ end }}
|