Fix inconsistent SENTRY_SECRET_KEY among the pods when not set explicitly. (#17385)

Signed-off-by: Andrey Voronkov <avoronkov@enapter.com>
This commit is contained in:
Andrey Voronkov
2019-09-26 04:01:08 -07:00
committed by Kubernetes Prow Robot
parent a042321d1a
commit 7a87f336d3
7 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Sentry is a cross-platform crash reporting and aggregation platform.
name: sentry
version: 3.0.0
version: 3.0.1
appVersion: 9.1.1
keywords:
- debugging
+1
View File
@@ -66,6 +66,7 @@ Parameter | Description
`image.tag` | Sentry image tag | `9.1.1`
`imagePullPolicy` | Image pull policy | `IfNotPresent`
`imagePullSecrets` | Specify image pull secrets | `[]`
`sentrySecret` | Specify SENTRY_SECRET_KEY. If isn't specified it will be generated automatically. | `nil`
`web.podAnnotations` | Web pod annotations | `{}`
`web.podLabels` | Worker pod extra labels | `{}`
`web.replicacount` | Amount of web pods to run | `1`
@@ -15,6 +15,7 @@ spec:
metrics-enabled: {{ .Values.metrics.enabled | quote }}
checksum/configYml: {{ .Values.config.configYml | sha256sum }}
checksum/sentryConfPy: {{ .Values.config.sentryConfPy | sha256sum }}
checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- if .Values.cron.podAnnotations }}
{{ toYaml .Values.cron.podAnnotations | indent 8 }}
{{- end }}
@@ -18,6 +18,8 @@ spec:
template:
metadata:
name: "{{ .Release.Name }}-db-init"
annotations:
checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
labels:
app: {{ template "sentry.fullname" . }}
release: "{{ .Release.Name }}"
@@ -18,6 +18,8 @@ spec:
template:
metadata:
name: "{{ .Release.Name }}-user-create"
annotations:
checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
labels:
app: {{ template "sentry.fullname" . }}
release: "{{ .Release.Name }}"
@@ -15,6 +15,7 @@ spec:
metrics-enabled: {{ .Values.metrics.enabled | quote }}
checksum/configYml: {{ .Values.config.configYml | sha256sum }}
checksum/sentryConfPy: {{ .Values.config.sentryConfPy | sha256sum }}
checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- if .Values.web.podAnnotations }}
{{ toYaml .Values.web.podAnnotations | indent 8 }}
{{- end }}
@@ -15,6 +15,7 @@ spec:
metrics-enabled: {{ .Values.metrics.enabled | quote }}
checksum/configYml: {{ .Values.config.configYml | sha256sum }}
checksum/sentryConfPy: {{ .Values.config.sentryConfPy | sha256sum }}
checksum/secrets.yaml: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
{{- if .Values.worker.podAnnotations }}
{{ toYaml .Values.worker.podAnnotations | indent 8 }}
{{- end }}