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

OZG-5238 Fix keycloak client refernece

parent fd392d31
No related branches found
No related tags found
No related merge requests found
......@@ -60,10 +60,10 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- end -}}
{{- define "app.ssoClientName" -}}
{{- if (.Values.sso).client_name -}}
{{ printf "%s" (.Values.sso).client_name }}
{{- if (.Values.sso.keycloak_clients[0]).client_name -}}
{{ printf "%s" (.Values.sso.keycloak_clients[0]).client_name }}
{{- else -}}
{{ printf "administration" }}
{{ printf "admin" }}
{{- end -}}
{{- end -}}
......
......@@ -50,7 +50,7 @@ tests:
path: spec.template.spec.containers[0].env
content:
name: ozgcloud_oauth2_resource
value: administration
value: admin
- contains:
path: spec.template.spec.containers[0].env
content:
......@@ -77,7 +77,9 @@ tests:
- it: check different client name
set:
sso:
client_name: different-client
keycloak_clients:
- client_name: different-client
client_roles: []
serverUrl: https://sso.company.local
asserts:
- isKind:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment