[stable/elasticsearch-curator] load envs from secrets first (#20874)

* [stable/elasticsearch-curator] load envs from secrets first

allows using environment variable composition with env
variables that are loaded from secrets (e.g. for loading
a HTTP password and then compositing it into a full
basic auth env variable).

Signed-off-by: Marvin Beckers <marvin.beckers@cerence.com>

* stable/elasticsearch-curator: bump version

Signed-off-by: Marvin Beckers <marvin.beckers@cerence.com>
This commit is contained in:
Kubernetes Prow Robot
2020-03-05 02:50:37 -08:00
committed by GitHub
parent 13906b7cdf
commit deb403a4ec
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "5.7.6"
description: A Helm chart for Elasticsearch Curator
name: elasticsearch-curator
version: 2.1.4
version: 2.1.5
home: https://github.com/elastic/curator
keywords:
- curator
@@ -89,12 +89,6 @@ spec:
args: [ "--config", "/etc/es-curator/config.yml", "/etc/es-curator/action_file.yml" ]
{{- end }}
env:
{{- if .Values.env }}
{{- range $key,$value := .Values.env }}
- name: {{ $key | upper | quote}}
value: {{ $value | quote}}
{{- end }}
{{- end }}
{{- if .Values.envFromSecrets }}
{{- range $key,$value := .Values.envFromSecrets }}
- name: {{ $key | upper | quote}}
@@ -103,6 +97,12 @@ spec:
name: {{ $value.from.secret | quote}}
key: {{ $value.from.key | quote}}
{{- end }}
{{- end }}
{{- if .Values.env }}
{{- range $key,$value := .Values.env }}
- name: {{ $key | upper | quote}}
value: {{ $value | quote}}
{{- end }}
{{- end }}
resources:
{{ toYaml .Values.resources | indent 16 }}