Skip to content

Commit

Permalink
slightly less broken optional secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
scottisloud committed Apr 4, 2023
1 parent b713eac commit c6670b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts/op-scim-bridge/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- $secrets := pick .Values.scim.credentials.secrets "scimsession" "workspaceSettings" "workspaceCredentials" }}
{{- range $secret := $secrets }}
{{- if not (or (hasKey $secret "value_json") (hasKey $secret "value_base64")) }}
{{- if (get $secret "key" | "scimsession") }}
{{- if eq (get $secret "key") "scimsession" }}
{{- fail "If create is set one of either value_json or value_base64 is required for each secret" }}
{{- else }}
{{- print "If create is set one of either value_json or value_base64 is required for each secret. The deployment may succeed but your Workspace Credentials and Settings may not be read." }}
Expand Down

0 comments on commit c6670b1

Please sign in to comment.