From 866804d92f72ab167b051afae99b9ce4120ac44e Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Mon, 21 Apr 2025 18:20:21 -0400 Subject: [PATCH] update output for discovery_url --- charts/keycloakx/README.md | 3 +-- outputs.tf | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/keycloakx/README.md b/charts/keycloakx/README.md index c3c4066..4ff5113 100644 --- a/charts/keycloakx/README.md +++ b/charts/keycloakx/README.md @@ -157,7 +157,7 @@ The following table lists the configurable parameters of the Keycloak-X chart an | `networkPolicy.enabled` | If true, the ingress network policy is deployed | `false` | `networkPolicy.extraFrom` | Allows to define allowed external ingress traffic (see Kubernetes doc for network policy `from` format) | `[]` | `networkPolicy.egress` | Allows to define allowed egress from Keycloak pods (see Kubernetes doc for network policy `egress` format) | `[]` -| `route.enabled` | If `true`, an OpenShift Route is created | `false` | +| `route.enabled` | If `true`, rean OpenShift Route is created | `false` | | `route.path` | Path for the Route | `/` | | `route.annotations` | Route annotations | `{}` | | `route.labels` | Additional Route labels | `{}` | @@ -593,4 +593,3 @@ Keycloak 18.0.0 allows to enable the health endpoint independently of the metric We reflect that via the new config option `health.enabled`. Please read the additional notes about [Migrating to 18.0.0](https://www.keycloak.org/docs/latest/upgrading/index.html#migrating-to-18-0-0) in the Keycloak documentation. - diff --git a/outputs.tf b/outputs.tf index 1b617ad..daa7645 100644 --- a/outputs.tf +++ b/outputs.tf @@ -24,7 +24,7 @@ output "provider_config" { output "discovery_url" { description = "The URL for discovering keycloak services." - value = "${module.ingress_resources.service_url}/auth/realms/master" + value = format("http://%v.%v.svc.cluster.local:%v/%v", var.service_name, var.keycloak_namespace, local.admin_internal_port_number, "auth/realms/master") } output "user_auth_realm" {