Skip to content

Commit b5262ea

Browse files
klinch0kvaps
authored andcommitted
fix keycloak secrets drift
1 parent 7da85d6 commit b5262ea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/system/keycloak/templates

‎packages/system/keycloak/templates/sts.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
22
{{- $host := index $cozyConfig.data "root-host" }}
3+
4+
{{- $existingPassword := lookup "v1" "Secret" "cozy-keycloak" "{{ .Release.Name }}-credentials" }}
35
{{- $password := randAlphaNum 16 -}}
6+
{{- if $existingPassword }}
7+
{{- $password = index $existingPassword.data "password" | b64dec }}
8+
{{- end }}
49

510
apiVersion: v1
611
kind: Secret

0 commit comments

Comments
 (0)