Skip to content

Commit

Permalink
feat: allow some snuba deployments to be pushed as hooks (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmitrofanbostontr authored Oct 12, 2020
1 parent 945e4c0 commit 9bda4ee
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sentry/templates/deployment-relay.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions sentry/templates/deployment-snuba-outcomes-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions sentry/templates/deployment-snuba-replacer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions sentry/templates/deployment-snuba-sessions-consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion sentry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ user:
email: admin@sentry.local
password: aaaa

asHook: true

images:
sentry:
# repository: getsentry/sentry
Expand All @@ -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: {}
Expand Down

0 comments on commit 9bda4ee

Please sign in to comment.