Skip to content

Commit

Permalink
Updates to the updated version due to issue with sytax in deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Feb 21, 2024
1 parent 1fec6a3 commit fcc9042
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions hyrax/templates/import-deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ spec:
name: app-secrets
{{- end }}
env:
# Include all environment variables from worker.extraEnvVars
{{- range .Values.worker.extraEnvVars }}
# Include env vars from worker.extraEnvVars except SIDEKIQ_CONCURRENCY
{{- range .Values.worker.extraEnvVars }}
{{- if ne .name "SIDEKIQ_CONCURRENCY" }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
# Override or add specific environment variables for the import worker
- name: "SIDEKIQ_CONCURRENCY"
value: {{ .Values.importWorker.extraEnvVars.SIDEKIQ_CONCURRENCY | quote }}
{{- end }}
# Set SIDEKIQ_CONCURRENCY for import worker
{{- range .Values.importWorker.extraEnvVars }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
command:
- sh
- -c
Expand Down

0 comments on commit fcc9042

Please sign in to comment.