Skip to content

Commit

Permalink
pods: add extraEnvVars to all invenio pods
Browse files Browse the repository at this point in the history
  • Loading branch information
egabancho committed Dec 13, 2024
1 parent 94e5369 commit 15d9765
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/invenio/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
value: {{ include "invenio.rabbitmq.uri" . }}
- name: INVENIO_SQLALCHEMY_DATABASE_URI
value: {{ include "invenio.sqlAlchemyDbUri" . }}
{{- if .Values.web.extraEnvVars }}
{{- .Values.web.extraEnvVars | toYaml | nindent 8 }}
{{- end }}
- name: INVENIO_SECRET_KEY
valueFrom:
secretKeyRef:
Expand Down
3 changes: 3 additions & 0 deletions charts/invenio/templates/worker-beat-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ spec:
value: {{ include "invenio.rabbitmq.uri" . }}
- name: INVENIO_SQLALCHEMY_DATABASE_URI
value: {{ include "invenio.sqlAlchemyDbUri" . }}
{{- if .Values.workerBeat.extraEnvVars }}
{{- .Values.workerBeat.extraEnvVars | toYaml | nindent 8 }}
{{- end }}
- name: INVENIO_SECRET_KEY
valueFrom:
secretKeyRef:
Expand Down
3 changes: 3 additions & 0 deletions charts/invenio/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
value: {{ include "invenio.rabbitmq.uri" . }}
- name: INVENIO_SQLALCHEMY_DATABASE_URI
value: {{ include "invenio.sqlAlchemyDbUri" . }}
{{- if .Values.worker.extraEnvVars }}
{{- .Values.worker.extraEnvVars | toYaml | nindent 10 }}
{{- end }}
- name: INVENIO_SECRET_KEY
valueFrom:
secretKeyRef:
Expand Down
9 changes: 9 additions & 0 deletions charts/invenio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ web:
uwsgi:
processes: 6
threads: 4
## @param web.extraEnvVars Extra environment variables (templated) to be added to the pods.
##
extraEnvVars: []
autoscaler:
enabled: false
scaler_cpu_utilization: 65
Expand Down Expand Up @@ -152,6 +155,9 @@ worker:
run_mount_path: /var/run/celery
celery_pidfile: /var/run/celery/celerybeat.pid
celery_schedule: /var/run/celery/celery-schedule
## @param worker.extraEnvVars Extra environment variables (templated) to be added to the pods.
##
extraEnvVars: []
resources:
requests:
cpu: 500m
Expand All @@ -163,6 +169,9 @@ worker:
enabled: false

workerBeat:
## @param workerBeat.extraEnvVars Extra environment variables (templated) to be added to the pods.
##
extraEnvVars: []
resources:
requests:
cpu: 500m
Expand Down

0 comments on commit 15d9765

Please sign in to comment.