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

Commit

Permalink
Testing a theory
Browse files Browse the repository at this point in the history
  • Loading branch information
aprilrieger committed Feb 20, 2024
1 parent e769ef2 commit 394ea91
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions ops/dev-deploy.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -212,18 +212,6 @@ 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 @@ -239,14 +227,17 @@ worker:
fsGroup: 101
fsGroupChangePolicy: "OnRootMismatch"
extraVolumeMounts: *volMounts
extraEnvVars:
{{ include "adventist.workerEnvVars" . | nindent 4 }}
extraEnvVars: *envVars
extraDeployEnvVars:
- name: GOOD_JOB_QUEUES
value: -auxiliary

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

extraDeploy:
- |-
Expand Down Expand Up @@ -280,7 +271,14 @@ extraDeploy:
- secretRef:
name: {{ template "hyrax.fullname" . }}
env:
{{- toYaml .Values.workerAuxiliary.extraEnvVars | nindent 12 }}
{{- range .Values.workerAuxiliary.extraDeployEnvVars }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- range .Values.workerAuxiliary.extraEnvVars }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
command:
- sh
- -c
Expand Down Expand Up @@ -314,7 +312,14 @@ extraDeploy:
{{- toYaml . | nindent 12 }}
{{- end }}
env:
{{- toYaml .Values.workerAuxiliary.extraEnvVars | nindent 12 }}
{{- range .Values.workerAuxiliary.extraDeployEnvVars }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- range .Values.workerAuxiliary.extraEnvVars }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- if .Values.worker.readinessProbe.enabled }}
readinessProbe:
exec:
Expand Down

0 comments on commit 394ea91

Please sign in to comment.