Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions charts/camunda-platform-8.8/templates/common/constraints.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -144,30 +144,34 @@ Fail with a message if Web Modeler is enabled but management Identity is not ena

{{ if .Values.global.identity.auth.enabled }} {{ if and (.Values.connectors.enabled)
(not .Values.global.identity.auth.connectors.existingSecret)
(not .Values.global.identity.auth.connectors.secret.existingSecret)
(not .Values.global.secrets.autoGenerated) }}
{{- $existingSecretsNotConfigured = append
$existingSecretsNotConfigured "global.identity.auth.connectors.existingSecret.name" }}
$existingSecretsNotConfigured "global.identity.auth.connectors.secret.existingSecret" }}
{{- end }}

{{ if and (ne (upper .Values.global.identity.auth.type) "KEYCLOAK")
(.Values.identity.enabled) (not .Values.global.identity.auth.identity.existingSecret)
(not .Values.global.identity.auth.identity.secret.existingSecret)
(not .Values.global.secrets.autoGenerated) }}
{{- $existingSecretsNotConfigured = append
$existingSecretsNotConfigured "global.identity.auth.identity.existingSecret.name" }}
$existingSecretsNotConfigured "global.identity.auth.identity.secret.existingSecret" }}
{{- end }}

{{ if and (.Values.console.enabled)
(not .Values.global.identity.auth.console.existingSecret)
(not .Values.global.identity.auth.console.secret.existingSecret)
(not .Values.global.secrets.autoGenerated) }}
{{- $existingSecretsNotConfigured = append
$existingSecretsNotConfigured "global.identity.auth.console.existingSecret.name" }}
$existingSecretsNotConfigured "global.identity.auth.console.secret.existingSecret" }}
{{- end }}

{{ if and (.Values.orchestration.enabled)
(not .Values.global.identity.auth.orchestration.existingSecret)
(not .Values.global.identity.auth.orchestration.secret.existingSecret)
(not .Values.global.secrets.autoGenerated) }}
{{- $existingSecretsNotConfigured = append
$existingSecretsNotConfigured "global.identity.auth.orchestration.existingSecret.name" }}
$existingSecretsNotConfigured "global.identity.auth.orchestration.secret.existingSecret" }}
{{- end }}
{{- end }}

Expand Down Expand Up @@ -219,7 +223,7 @@ The following values inside your values.yaml need to be set but were not:
{{- range $existingSecretsNotConfigured }}
{{- $errorMessage = (cat " " $errorMessage "\n" .) }}
{{- end }}
{{- $errorMessage = (cat $errorMessage "\n\n" "Please be aware that each of the above parameters expect a string name of a Kubernetes Secret object.\n") }}
{{- $errorMessage = (cat $errorMessage "\n\n" "Please set each parameter above to your Kubernetes Secret name, along with the corresponding .secret.existingSecretKey parameter.\n") }}
{{- printf "\n%s" $errorMessage | trimSuffix "\n" }}
{{- else if eq .Values.global.testDeprecationFlags.existingSecretsMustBeSet "error" }}
{{- $errorMessage := (printf "%s"
Expand All @@ -235,7 +239,7 @@ The following values inside your values.yaml need to be set but were not:
{{- range $existingSecretsNotConfigured }}
{{- $errorMessage = (cat " " $errorMessage "\n" .) }}
{{- end }}
{{- $errorMessage = (cat $errorMessage "\n\n" "Please be aware that each of the above parameters expect a string name of a kubernetes Secret.\n") }}
{{- $errorMessage = (cat $errorMessage "\n\n" "Please set each parameter above to your Kubernetes Secret name, along with the corresponding .secret.existingSecretKey parameter.\n") }}
{{ printf "\n%s" $errorMessage | trimSuffix "\n"| fail }}
{{- end }}
{{- end }}
Expand Down
Loading