diff --git a/src/main/helm/templates/keycloak_crd.yaml b/src/main/helm/templates/keycloak_crd.yaml index c31977aebf7af7aacfc02f009f5711ced20c9aa8..d2e7a68b18b309df3a5e64274ebfe3fa34fffe6c 100644 --- a/src/main/helm/templates/keycloak_crd.yaml +++ b/src/main/helm/templates/keycloak_crd.yaml @@ -31,7 +31,8 @@ metadata: namespace: {{ include "app.namespace" . }} spec: keep_after_delete: {{ (.Values.sso).keep_after_delete | default false }} - displayName: {{ include "app.ssoRealmDisplayName" . }} + displayName: {{ include "app.ssoRealmDisplayName" . }} + bundesland: {{ include "app.ozgcloudBundesland" . }} {{- with ((.Values.sso).keycloak_realm).roles }} realmRoles: {{ toYaml . | indent 4}} diff --git a/src/test/helm/keycloak_crd_test.yaml b/src/test/helm/keycloak_crd_test.yaml index eae8a1c4fe845c382c0afba1ca586f52b5bdcc85..f414d92814cc3af01a22d8c68ccb689457c811d2 100644 --- a/src/test/helm/keycloak_crd_test.yaml +++ b/src/test/helm/keycloak_crd_test.yaml @@ -32,6 +32,7 @@ set: ozgcloud: environment: test bezeichner: helm + bundesland: sh tests: - it: should contain header data asserts: @@ -136,4 +137,9 @@ tests: - it: should not create realm roles by default asserts: - isNull: - path: spec.realmRoles \ No newline at end of file + path: spec.realmRoles + - it: should have a bundesland + asserts: + - equal: + path: spec.bundesland + value: sh \ No newline at end of file