diff --git a/templates/secret-api-encryption.yaml b/templates/secret-api-encryption.yaml index 8db2612..2408d0b 100644 --- a/templates/secret-api-encryption.yaml +++ b/templates/secret-api-encryption.yaml @@ -1,7 +1,7 @@ {{- $encryptionKey := randAlphaNum 36 | b64enc | quote }} {{- $secret := (lookup "v1" "Secret" .Release.Namespace "kotsadm-encryption") }} {{- if $secret }} -{{- $encryptionKey = index $secret.data "encryptionKey" }} +{{- $encryptionKey = index $secret.data "encryptionKey" | b64dec }} {{- end -}} apiVersion: v1 kind: Secret @@ -11,4 +11,3 @@ metadata: name: kotsadm-encryption stringData: encryptionKey: {{ $encryptionKey }} -