From 8ca5e9ea641eb7570d1d0c4b849b0d93464710d2 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Mon, 9 Dec 2024 12:10:52 +0100 Subject: [PATCH] OZG-7347: Add bundesland field to Keycloak-CR. --- src/main/helm/templates/keycloak_crd.yaml | 3 ++- src/test/helm/keycloak_crd_test.yaml | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/helm/templates/keycloak_crd.yaml b/src/main/helm/templates/keycloak_crd.yaml index c31977aebf..fc50c79f3a 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: {{ (.Values.ozgcloud).bundesland }} {{- 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 eae8a1c4fe..f414d92814 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 -- GitLab