Skip to content
Snippets Groups Projects
Commit 37a25762 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-5238 Avoid Problem

parent 6e912171
No related branches found
No related tags found
No related merge requests found
......@@ -60,10 +60,8 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- end -}}
{{- define "app.ssoClientName" -}}
{{- if ( .Values.sso).keycloak_clients -}}
{{- with (first .Values.sso.keycloak_clients) }}
{{ printf "%s" .client_name }}
{{- end }}
{{- if (.Values.sso).client_name -}}
{{ printf "%s" (.Values.sso).client_name }}
{{- else -}}
{{ printf "admin" }}
{{- end -}}
......
......@@ -75,8 +75,7 @@ tests:
- it: check different client name
set:
sso:
keycloak_clients:
- client_name: different-client
client_name: different-client
asserts:
- isKind:
of: Deployment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment