mirror of
https://github.com/bitnami/charts.git
synced 2026-03-07 08:07:55 +08:00
[bitnami/kubernetes-event-exporter] Add extraEnvVars support (#7238)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user