You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Update/set value to value in values.yaml if specified
36
+
{{ $k }}: {{ $v | quote }}
37
+
# {{ $k }}-updated: "it's a non empty string"
38
+
{{- else }}
39
+
# Refresh at any deployment for ? (pure random) value
40
+
# {{ $k }}-random: "set to a random string"
41
+
{{ $k }}: {{ randAlphaNum 20 | quote }}
42
+
{{- end }}
43
+
{{- else }}
44
+
# Type not recognized: setting to a empty string"
45
+
{{ $k }}: ""
46
+
# {{ $k }}-formatnotrecognized: {{ typeOf $v }}
47
+
{{- end }}
48
+
{{- else if eq (typeOf $secret.data) (typeOf dict) }}
49
+
# Value empty or null in the values.yaml
50
+
{{- if not (hasKey $secret.data $k) }}
51
+
# 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) */}}
52
+
# {{ $k }}-random-empty: new-random
53
+
{{ $k }}: {{ randAlphaNum 20 | quote }}
54
+
{{- else }}
55
+
# confirm previous value from the secret (static random secret already set, do nothing)
0 commit comments