Skip to content

Commit d8e09ab

Browse files
sruegunguiculus
authored andcommitted
[keycloak] Move config checksum annotation to pod template (#27)
Signed-off-by: Simon Rüegg <[email protected]>
1 parent 06e5afe commit d8e09ab

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

charts/keycloak/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: keycloak
2-
version: 4.13.0
2+
version: 4.13.1
33
appVersion: 5.0.0
44
description: Open Source Identity and Access Management For Modern Applications and Services
55
keywords:

charts/keycloak/templates/keycloak-secret.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ metadata:
1111
type: Opaque
1212
data:
1313
{{- if .Values.keycloak.password }}
14-
{{ .Values.keycloak.existingSecretKey }}: {{ .Values.keycloak.password | b64enc | quote }}
14+
{{ .Values.keycloak.existingSecretKey }}: {{ .Values.keycloak.password | b64enc | quote }}
1515
{{- else }}
16-
{{ .Values.keycloak.existingSecretKey }}: {{ randAlphaNum 10 | b64enc | quote }}
16+
{{ .Values.keycloak.existingSecretKey }}: {{ randAlphaNum 10 | b64enc | quote }}
1717
{{- end }}
1818
{{- end}}

charts/keycloak/templates/statefulset.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ apiVersion: apps/v1
33
kind: StatefulSet
44
metadata:
55
name: {{ template "keycloak.fullname" . }}
6-
annotations:
7-
checksum/config: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
86
labels:
97
app: {{ template "keycloak.name" . }}
108
chart: {{ template "keycloak.chart" . }}
@@ -28,8 +26,9 @@ spec:
2826
{{- if .Values.keycloak.podLabels }}
2927
{{ toYaml .Values.keycloak.podLabels | indent 8 }}
3028
{{- end }}
31-
{{- if .Values.keycloak.podAnnotations }}
3229
annotations:
30+
checksum/config: {{ include (print .Template.BasePath "/configmap.yaml") . | sha256sum }}
31+
{{- if .Values.keycloak.podAnnotations }}
3332
{{ toYaml .Values.keycloak.podAnnotations | indent 8 }}
3433
{{- end }}
3534
spec:

0 commit comments

Comments
 (0)