Skip to content

Commit

Permalink
CH-162 fix for non string secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Nov 6, 2024
1 parent 9be9c96 commit b4e4102
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment-configuration/helm/templates/auto-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: Opaque

stringData:
{{- range $k, $v := .app.harness.secrets }}
{{- if and $v (ne $v "?") }}
{{- if and $v (and (eq (typeOf $v) "string") (ne $v "?")) }}
# Set secret value to value in values.yaml if specified
{{ $k }}: {{ $v }}
{{- else if or (eq $v "?") (not (hasKey $secret.data $k)) }}
{{- else if or (and (eq (typeOf $v) "string") (eq $v "?")) (not (hasKey $secret.data $k)) }}
# Create a random secret value if not specified in values.yaml if:
# 1. it is not set and it is not already in the deployed secret (static random secret)
# 2. its value is ? (dynamic random secret)
Expand Down

0 comments on commit b4e4102

Please sign in to comment.