Skip to content

Commit d269979

Browse files
kvapsklinch0
authored andcommitted
fix keycloak secrets drift (cozystack#509)
1 parent 753b27a commit d269979

File tree

1 file changed

+1
-1
lines changed
  • packages/system/keycloak/templates

1 file changed

+1
-1
lines changed

packages/system/keycloak/templates/sts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{- $cozyConfig := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
22
{{- $host := index $cozyConfig.data "root-host" }}
33

4-
{{- $existingPassword := lookup "v1" "Secret" "cozy-keycloak" "{{ .Release.Name }}-credentials" }}
4+
{{- $existingPassword := lookup "v1" "Secret" "cozy-keycloak" (printf "%s-credentials" .Release.Name) }}
55
{{- $password := randAlphaNum 16 -}}
66
{{- if $existingPassword }}
77
{{- $password = index $existingPassword.data "password" | b64dec }}

0 commit comments

Comments
 (0)