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