Skip to content

Commit b8ca1e3

Browse files
committed
CH-170 fix secrets upgrade error
1 parent 80c7236 commit b8ca1e3

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

deployment-configuration/helm/templates/auto-secrets.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,28 @@ stringData:
1919
{{- if ne $v "?" }}
2020
# Update/set value to value in values.yaml if specified
2121
{{ $k }}: {{ $v | quote }}
22-
# {{ $k }}-updated: "it's a non empty string"
2322
{{- else }}
2423
# Refresh at any deployment for ? (pure random) value
25-
# {{ $k }}-random: "set to a random string"
2624
{{ $k }}: {{ randAlphaNum 20 | quote }}
2725
{{- end }}
2826
{{- else }}
2927
# Type not recognized: setting to a empty string"
30-
{{ $k }}: ""
31-
# {{ $k }}-formatnotrecognized: {{ typeOf $v }}
28+
{{ $k }}-formatnotrecognized: {{ $v }}
29+
{{ $k }}: ""
3230
{{- end }}
3331
{{- else if eq (typeOf $secret.data) (typeOf dict) }}
3432
# Value empty or null in the values.yaml
3533
{{- if not (hasKey $secret.data $k) }}
3634
# Create a random secret value if not specified in values.yaml if it is not set and it is not already in the deployed secret (static random secret) */}}
37-
# {{ $k }}-random-empty: new-random
3835
{{ $k }}: {{ randAlphaNum 20 | quote }}
3936
{{- else }}
40-
# confirm previous value from the secret (static random secret already set, do nothing)
41-
# {{ $k }}-confirm: {{ index $secret.data $k | quote }}
37+
# confirm previous value from the secret (static random secret already set, do nothing)}
4238
{{- end}}
4339
{{- end }}
4440
{{- end }} # range end
4541
{{- else }}
4642
# New secret
4743
{{- range $k, $v := .app.harness.secrets }}
48-
{{ $k }}-new: {{ $v | default (randAlphaNum 20) | quote }}
4944
{{ $k }}: {{ $v | default (randAlphaNum 20) | quote }}
5045
{{- end }}
5146
{{- end }}

0 commit comments

Comments
 (0)