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

Merge pull request 'OZG-5422 add realm roles configs in OzgCloudKeycloakRealm'...

Merge pull request 'OZG-5422 add realm roles configs in OzgCloudKeycloakRealm' (#519) from OZG-5422 into master

Reviewed-on: https://git.ozg-sh.de/ozgcloud-app/alfa/pulls/519


Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
Reviewed-by: default avatarOZGCloud <ozgcloud@mgm-tp.com>
parents 7e3f1869 553ac360
No related branches found
No related tags found
No related merge requests found
......@@ -7,8 +7,13 @@ metadata:
spec:
keep_after_delete: {{ (.Values.sso).keep_after_delete | default false }}
displayName: {{ include "app.ssoRealmDisplayName" . }}
{{- with .Values.smtpServer }}
{{- with ((.Values.sso).keycloak_realm).roles }}
realmRoles:
{{ toYaml . | indent 4}}
{{- end }}
{{- with ((.Values.sso).keycloak_realm).smtpServer }}
smtpServer:
{{ toYaml . | indent 4}}
{{- end }}
{{- end }}
......@@ -32,6 +32,7 @@ replicaCount: 2 # [default: 2]
usermanagerName: user-manager
# env:
# overrideSpringProfiles: "oc,prod"
# customList: # add name value pair for additional environments
......@@ -60,3 +61,5 @@ usermanagerName: user-manager
# bundesland: sh
# bezeichner: kiel
# environment: dev
......@@ -80,6 +80,8 @@ tests:
- it: should have smtp server Values
set:
sso:
keycloak_realm:
smtpServer:
user: user0
from: user0@test.de
......@@ -115,3 +117,23 @@ tests:
path: spec.smtpServer.fromDisplayName
value: displayed name
- it: should create realm roles if set
set:
sso:
keycloak_realm:
roles:
- name: role1
- name: role0
asserts:
- contains:
path: spec.realmRoles
content:
name: role0
- contains:
path: spec.realmRoles
content:
name: role1
- it: should not create realm roles by default
asserts:
- isNull:
path: spec.realmRoles
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment