renovate-charts/templates/configmap.yaml
Markus Pesch a3d1eb7cd9
All checks were successful
continuous-integration/drone/push Build is passing
fix: use config.json as default and bump to v31
2021-12-21 22:59:20 +01:00

21 lines
640 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "renovate.fullname" . }}-env
labels:
{{- include "renovate.labels" . | nindent 4 }}
data:
{{- if not (hasKey .Values.renovate "env") -}}
{{- $_ := set .Values "env" dict -}}
{{- end -}}
{{- if not (hasKey .Values.renovate.env "RENOVATE_CONFIG_FILE") -}}
{{- $configFile := printf "/usr/src/app/config.%s" .Values.renovate.appConfig.extension -}}
{{- $_ := set .Values.renovate.env "RENOVATE_CONFIG_FILE" $configFile -}}
{{- end -}}
{{/* SETUP CONFIG */}}
{{ range $key, $value := .Values.renovate.env }}
{{ upper $key}}: {{ quote $value }}
{{ end }}