diff --git a/sentry/templates/deployment-relay.yaml b/sentry/templates/deployment-relay.yaml index a4fa8d1e6..8d1e94008 100644 --- a/sentry/templates/deployment-relay.yaml +++ b/sentry/templates/deployment-relay.yaml @@ -7,7 +7,7 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" - {{- if .Values.relay.asHook }} + {{- if .Values.asHook }} annotations: "helm.sh/hook": "post-install,post-upgrade" "helm.sh/hook-weight": "15" diff --git a/sentry/templates/deployment-snuba-outcomes-consumer.yaml b/sentry/templates/deployment-snuba-outcomes-consumer.yaml index bf4f67da0..1e07347aa 100644 --- a/sentry/templates/deployment-snuba-outcomes-consumer.yaml +++ b/sentry/templates/deployment-snuba-outcomes-consumer.yaml @@ -7,6 +7,11 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" + {{- if .Values.asHook }} + annotations: + "helm.sh/hook": "post-install,post-upgrade" + "helm.sh/hook-weight": "17" + {{- end }} spec: selector: matchLabels: diff --git a/sentry/templates/deployment-snuba-replacer.yaml b/sentry/templates/deployment-snuba-replacer.yaml index 6d3071d7d..a8b1fae1a 100644 --- a/sentry/templates/deployment-snuba-replacer.yaml +++ b/sentry/templates/deployment-snuba-replacer.yaml @@ -7,6 +7,11 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" + {{- if .Values.asHook }} + annotations: + "helm.sh/hook": "post-install,post-upgrade" + "helm.sh/hook-weight": "18" + {{- end }} spec: selector: matchLabels: diff --git a/sentry/templates/deployment-snuba-sessions-consumer.yaml b/sentry/templates/deployment-snuba-sessions-consumer.yaml index f0e6e169c..86e3d4dab 100644 --- a/sentry/templates/deployment-snuba-sessions-consumer.yaml +++ b/sentry/templates/deployment-snuba-sessions-consumer.yaml @@ -7,6 +7,11 @@ metadata: chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" + {{- if .Values.asHook }} + annotations: + "helm.sh/hook": "post-install,post-upgrade" + "helm.sh/hook-weight": "16" + {{- end }} spec: selector: matchLabels: diff --git a/sentry/values.yaml b/sentry/values.yaml index 5d927153a..c88404c76 100644 --- a/sentry/values.yaml +++ b/sentry/values.yaml @@ -5,6 +5,8 @@ user: email: admin@sentry.local password: aaaa +asHook: true + images: sentry: # repository: getsentry/sentry @@ -28,7 +30,6 @@ relay: # this is required on the first installation, as sentry has to be initialized first # recommended to set false for updating the helm chart afterwards, # as you will have some downtime on each update if it's a hook - asHook: true env: [] probeInitialDelaySeconds: 10 resources: {}