Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
attempt using templ to merge ENV var lists
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Feb 15, 2024
1 parent f1aa344 commit e769ef2
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions ops/dev-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ extraEnvVars: &envVars
- name: SERVERLESS_WORD_DLQ
value: https://sqs.us-east-1.amazonaws.com/031107666127/space-stone-production-word-coordinates-dlq

{{- define "adventist.workerEnvVars" -}}
{{- toYaml .Values.extraEnvVars -}}
- name: GOOD_JOB_QUEUES
value: -auxiliary
{{- end -}}

{{- define "adventist.workerAuxiliaryEnvVars" -}}
{{- toYaml .Values.extraEnvVars -}}
- name: GOOD_JOB_QUEUES
value: "*"
{{- end -}}

worker:
replicaCount: 1
resources:
Expand All @@ -228,17 +240,13 @@ worker:
fsGroupChangePolicy: "OnRootMismatch"
extraVolumeMounts: *volMounts
extraEnvVars:
- <<: *envVars
- name: GOOD_JOB_QUEUES
value: -auxiliary
{{ include "adventist.workerEnvVars" . | nindent 4 }}

# When adding/removing key-value pairs to this block, ensure the
# corresponding changes are made in the `extraDeploy` block below.
workerAuxiliary:
extraEnvVars:
- <<: *envVars
- name: GOOD_JOB_QUEUES
value: "*"
{{ include "adventist.workerAuxiliaryEnvVars" . | nindent 4 }}

extraDeploy:
- |-
Expand Down

0 comments on commit e769ef2

Please sign in to comment.