[bitnami/kubernetes-event-exporter] Add extraEnvVars support (#7238)

This commit is contained in:
Mykola Grygoriev
2021-08-17 11:31:58 -04:00
committed by GitHub
parent 6e842943f2
commit 165ebc128a
2 changed files with 15 additions and 1 deletions

View File

@@ -26,4 +26,4 @@ name: kubernetes-event-exporter
sources:
- https://github.com/bitnami/bitnami-docker-kubernetes-event-exporter
- https://github.com/opsgenie/kubernetes-event-exporter
version: 1.1.11
version: 1.1.12

View File

@@ -58,6 +58,20 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- -conf=/data/config.yaml
{{- if .Values.extraEnv }}
env: {{- include "common.tplvalues.render" (dict "value" .Values.extraEnv "context" $) | nindent 12 }}
{{- end }}
{{- if or .Values.extraEnvVarsCM .Values.extraEnvVarsSecret }}
envFrom:
{{- if .Values.extraEnvVarsCM }}
- configMapRef:
name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsCM "context" $) }}
{{- end }}
{{- if .Values.extraEnvVarsSecret }}
- secretRef:
name: {{ include "common.tplvalues.render" (dict "value" .Values.extraEnvVarsSecret "context" $) }}
{{- end }}
{{- end }}
resources: {{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.containerSecurityContext.enabled }}
# yamllint disable rule:indentation