From 9206d9f8ad2207087556b563d2d6647fe2063160 Mon Sep 17 00:00:00 2001 From: patdyn Date: Thu, 29 Aug 2024 12:08:11 +0200 Subject: [PATCH] Update configmap and test --- src/main/resources/keycloak/configmap.yaml | 5 ++--- src/test/cljc/dda/c4k_keycloak/keycloak_test.cljc | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/resources/keycloak/configmap.yaml b/src/main/resources/keycloak/configmap.yaml index 453818f..1ba884f 100644 --- a/src/main/resources/keycloak/configmap.yaml +++ b/src/main/resources/keycloak/configmap.yaml @@ -8,11 +8,10 @@ data: KC_HTTPS_CERTIFICATE_KEY_FILE: /etc/certs/tls.key KC_HOSTNAME: FQDN KC_HOSTNAME_ADMIN: ADMIN_FQDN - KC_PROXY: edge KC_DB: postgres KC_DB_URL_HOST: postgresql-service KC_DB_URL_PORT: "5432" - # TODO Do we need to enable http, as we are behind ingress? - # KC_HTTP_ENABLED: true + # We need to enable http, as we are behind an ingress + KC_HTTP_ENABLED: "true" # TODO Maybe also enable load shedding # KC_HTTP_MAX_QUEUED_REQUESTS: 2000 diff --git a/src/test/cljc/dda/c4k_keycloak/keycloak_test.cljc b/src/test/cljc/dda/c4k_keycloak/keycloak_test.cljc index ef49499..4bd6001 100644 --- a/src/test/cljc/dda/c4k_keycloak/keycloak_test.cljc +++ b/src/test/cljc/dda/c4k_keycloak/keycloak_test.cljc @@ -31,10 +31,10 @@ :KC_HTTPS_CERTIFICATE_KEY_FILE "/etc/certs/tls.key", :KC_HOSTNAME "test.de" , :KC_HOSTNAME_ADMIN "control.test.de", - :KC_PROXY "edge", :KC_DB "postgres", :KC_DB_URL_HOST "postgresql-service", - :KC_DB_URL_PORT "5432"}} + :KC_DB_URL_PORT "5432", + :KC_HTTP_ENABLED "true"}} (cut/generate-configmap {:namespace "keycloak" :fqdn "test.de"})))) (deftest should-generate-deployment