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
updated: {{ now | quote }} # Added because in case of update, if no field is updated, alla data is erased
15
+
{{- if $secret }}
16
+
{{- range $k, $v := .app.harness.secrets }}
17
+
{{- if $v }}
18
+
{{- if eq (typeOf $v) "string" }}
19
+
{{- if ne $v "?" }}
20
+
# Update/set value to value in values.yaml if specified
21
+
{{ $k }}: {{ $v | quote }}
22
+
{{- else }}
23
+
# Refresh at any deployment for ? (pure random) value
24
+
{{ $k }}: {{ randAlphaNum 20 | quote }}
25
+
{{- end }}
26
+
{{- else }}
27
+
# Type not recognized: setting to a empty string"
28
+
{{ $k }}-formatnotrecognized: {{ $v }}
29
+
{{ $k }}: ""
30
+
{{- end }}
31
+
{{- else if eq (typeOf $secret.data) (typeOf dict) }}
32
+
# Value empty or null in the values.yaml
33
+
{{- if not (hasKey $secret.data $k) }}
34
+
# 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) */}}
35
+
{{ $k }}: {{ randAlphaNum 20 | quote }}
36
+
{{- else }}
37
+
# confirm previous value from the secret (static random secret already set, do nothing)}
0 commit comments