Skip to content

Commit c7ac4a6

Browse files
authored
Merge branch 'master' into better-connection-strings
2 parents 65f8d0c + 29f53c5 commit c7ac4a6

File tree

5 files changed

+62
-0
lines changed

5 files changed

+62
-0
lines changed

charts/invenio/templates/flower/deployment.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ spec:
4545
name: {{ .Values.flower.secret_name }}
4646
key: FLOWER_BASIC_AUTH_CREDENTIALS
4747
{{- include "invenio.config.queue" . | nindent 12 }}
48+
{{- if (or .Values.invenio.extraEnvFrom .Values.flower.extraEnvFrom) }}
49+
envFrom:
50+
{{- with .Values.invenio.extraEnvFrom }}
51+
{{- . | toYaml | nindent 12 }}
52+
{{- end }}
53+
{{- with .Values.flower.extraEnvFrom }}
54+
{{- . | toYaml | nindent 12 }}
55+
{{- end }}
56+
{{- end }}
4857
{{- if .Values.flower.resources }}
4958
resources: {{- toYaml .Values.flower.resources | nindent 12 }}
5059
{{- end }}

charts/invenio/templates/web-deployment.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ spec:
3333
name: {{ include "invenio.fullname" . }}-config
3434
- secretRef:
3535
name: {{ include "invenio.secretName" . }}
36+
{{- with .Values.invenio.extraEnvFrom }}
37+
{{- . | toYaml | nindent 8 }}
38+
{{- end }}
39+
{{- with .Values.web.extraEnvFrom }}
40+
{{- . | toYaml | nindent 8 }}
41+
{{- end }}
3642
env:
3743
- name: TZ
3844
value: {{ required "Missing .Values.global.timezone" .Values.global.timezone }}

charts/invenio/templates/worker-beat-deployment.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ spec:
4545
name: {{ include "invenio.fullname" . }}-config
4646
- secretRef:
4747
name: {{ include "invenio.secretName" . }}
48+
{{- with .Values.invenio.extraEnvFrom }}
49+
{{- . | toYaml | nindent 8 }}
50+
{{- end }}
51+
{{- with .Values.workerBeat.extraEnvFrom }}
52+
{{- . | toYaml | nindent 8 }}
53+
{{- end }}
4854
env:
4955
- name: TZ
5056
value: {{ required "Missing .Values.global.timezone" .Values.global.timezone }}

charts/invenio/templates/worker-deployment.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ spec:
3636
name: {{ include "invenio.fullname" . }}-config
3737
- secretRef:
3838
name: {{ include "invenio.secretName" . }}
39+
{{- with .Values.invenio.extraEnvFrom }}
40+
{{- . | toYaml | nindent 12 }}
41+
{{- end }}
42+
{{- with .Values.worker.extraEnvFrom }}
43+
{{- . | toYaml | nindent 12 }}
44+
{{- end }}
3945
env:
4046
- name: TZ
4147
value: {{ required "Missing .Values.global.timezone" .Values.global.timezone }}

charts/invenio/values.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ invenio:
8585
# name: name-of-my-secret
8686
# key: KEY_IN_MY_SECRET
8787
uwsgiExtraConfig: {}
88+
## @param invenio.extraEnvFrom Extra secretRef or configMapRef for the `envFrom` field in all Invenio containers
89+
##
90+
extraEnvFrom: []
91+
# - secretRef:
92+
# name: foo
93+
# - configMapRef:
94+
# name: bar
8895

8996
## @param invenio.vocabularies Vocabularies to be loaded as files under /app_data/vocabularies
9097
## Example
@@ -234,6 +241,13 @@ web:
234241
capabilities:
235242
drop:
236243
- ALL
244+
## @param web.extraEnvFrom Extra secretRef or configMapRef for the `envFrom` field in the web container
245+
##
246+
extraEnvFrom: []
247+
# - secretRef:
248+
# name: foo
249+
# - configMapRef:
250+
# name: bar
237251

238252
worker:
239253
enabled: true
@@ -273,6 +287,13 @@ worker:
273287
capabilities:
274288
drop:
275289
- ALL
290+
## @param worker.extraEnvFrom Extra secretRef or configMapRef for the `envFrom` field in the worker container
291+
##
292+
extraEnvFrom: []
293+
# - secretRef:
294+
# name: foo
295+
# - configMapRef:
296+
# name: bar
276297

277298
workerBeat:
278299
## @param workerBeat.extraEnvVars Extra environment variables (templated) to be added to the pods.
@@ -300,6 +321,13 @@ workerBeat:
300321
runAsGroup: 1000
301322
seccompProfile:
302323
type: "RuntimeDefault"
324+
## @param workerBeat.extraEnvFrom Extra secretRef or configMapRef for the `envFrom` field in the worker-beat container
325+
##
326+
extraEnvFrom: []
327+
# - secretRef:
328+
# name: foo
329+
# - configMapRef:
330+
# name: bar
303331

304332
persistence:
305333
enabled: true
@@ -384,6 +412,13 @@ flower:
384412
limits:
385413
memory: 250Mi
386414
cpu: 0.1
415+
## @param flower.extraEnvFrom Extra secretRef or configMapRef for the `envFrom` field in the flower container
416+
##
417+
extraEnvFrom: []
418+
# - secretRef:
419+
# name: foo
420+
# - configMapRef:
421+
# name: bar
387422

388423
## PostgreSQL chart configuration
389424
## ref: https://github.com/bitnami/charts/blob/main/bitnami/postgresql/values.yaml

0 commit comments

Comments
 (0)