2021-10-28 17:41:17 +00:00
|
|
|
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 -}}
|
|
|
|
|
2021-12-21 21:59:20 +00:00
|
|
|
{{- 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 -}}
|
|
|
|
|
2021-10-28 17:41:17 +00:00
|
|
|
{{/* SETUP CONFIG */}}
|
|
|
|
{{ range $key, $value := .Values.renovate.env }}
|
|
|
|
{{ upper $key}}: {{ quote $value }}
|
|
|
|
{{ end }}
|