Skip to content

Commit 6d53339

Browse files
authored
refactor: replace worker annotations/labels with web in hook jobs to prepare for future Taskworker use (#1986)
1 parent 35ed78d commit 6d53339

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

charts/sentry/templates/hooks/sentry-db-check.job.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ spec:
2727
metadata:
2828
name: {{ template "sentry.fullname" . }}-db-check
2929
annotations:
30-
{{- if .Values.sentry.worker.annotations }}
31-
{{ toYaml .Values.sentry.worker.annotations | indent 8 }}
30+
{{- if .Values.sentry.web.annotations }}
31+
{{ toYaml .Values.sentry.web.annotations | indent 8 }}
3232
{{- end }}
3333
{{- if .Values.hooks.dbCheck.podAnnotations }}
3434
{{ toYaml .Values.hooks.dbCheck.podAnnotations | indent 8 }}
3535
{{- end }}
3636
labels:
3737
app: sentry
3838
release: "{{ .Release.Name }}"
39-
{{- if .Values.sentry.worker.podLabels }}
40-
{{ toYaml .Values.sentry.worker.podLabels | indent 8 }}
39+
{{- if .Values.sentry.web.podLabels }}
40+
{{ toYaml .Values.sentry.web.podLabels | indent 8 }}
4141
{{- end }}
4242
{{- if .Values.hooks.dbCheck.podLabels }}
4343
{{ toYaml .Values.hooks.dbCheck.podLabels | indent 8 }}

charts/sentry/templates/hooks/sentry-db-init.job.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ spec:
2323
name: {{ template "sentry.fullname" . }}-db-init
2424
annotations:
2525
checksum/configmap.yaml: {{ include "sentry.config" . | sha256sum }}
26-
{{- if .Values.sentry.worker.annotations }}
27-
{{ toYaml .Values.sentry.worker.annotations | indent 8 }}
26+
{{- if .Values.sentry.web.annotations }}
27+
{{ toYaml .Values.sentry.web.annotations | indent 8 }}
2828
{{- end }}
2929
{{- if .Values.hooks.dbInit.podAnnotations }}
3030
{{ toYaml .Values.hooks.dbInit.podAnnotations | indent 8 }}
3131
{{- end }}
3232
labels:
3333
app: sentry
3434
release: "{{ .Release.Name }}"
35-
{{- if .Values.sentry.worker.podLabels }}
36-
{{ toYaml .Values.sentry.worker.podLabels | indent 8 }}
35+
{{- if .Values.sentry.web.podLabels }}
36+
{{ toYaml .Values.sentry.web.podLabels | indent 8 }}
3737
{{- end }}
3838
{{- if .Values.hooks.dbInit.podLabels }}
3939
{{ toYaml .Values.hooks.dbInit.podLabels | indent 8 }}

charts/sentry/templates/hooks/user-create.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ spec:
2121
name: {{ template "sentry.fullname" . }}-user-create
2222
annotations:
2323
checksum/configmap.yaml: {{ include "sentry.config" . | sha256sum }}
24-
{{- if .Values.sentry.worker.annotations }}
25-
{{ toYaml .Values.sentry.worker.annotations | indent 8 }}
24+
{{- if .Values.sentry.web.annotations }}
25+
{{ toYaml .Values.sentry.web.annotations | indent 8 }}
2626
{{- end }}
2727
{{- if .Values.hooks.dbInit.podAnnotations }}
2828
{{ toYaml .Values.hooks.dbInit.podAnnotations | indent 8 }}
2929
{{- end }}
3030
labels:
3131
app: sentry
3232
release: "{{ .Release.Name }}"
33-
{{- if .Values.sentry.worker.podLabels }}
34-
{{ toYaml .Values.sentry.worker.podLabels | indent 8 }}
33+
{{- if .Values.sentry.web.podLabels }}
34+
{{ toYaml .Values.sentry.web.podLabels | indent 8 }}
3535
{{- end }}
3636
spec:
3737
{{- if .Values.hooks.dbInit.affinity }}

0 commit comments

Comments
 (0)