helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[keycloak] /auth does not exist since V18

Open Iron-Wolf opened this issue 3 years ago • 3 comments

The values.yml contains references to the old /auth/ path.
This is no longer required in Keycloak 18.

It should be as easy as that (for all occurences of /auth/) :

livenessProbe: |
  httpGet:
-    path: /auth/
+    path: /
    port: http
  initialDelaySeconds: 0
  timeoutSeconds: 5

Iron-Wolf avatar Aug 02 '22 15:08 Iron-Wolf

I support your suggestion, but the default value (values.yaml) for the relative path should be changed too:

 http:
   # For backwards compatibility reasons we set this to the value used by previous Keycloak versions.
-  relativePath: "/auth"
+  relativePath: "/"

In the keycloakx helm chart the trimSuffix must be removed. Otherwise the variable is empty.

diff --git a/charts/keycloakx/templates/statefulset.yaml b/charts/keycloakx/templates/statefulset.yaml
index d71cdc0..4de1d3f 100644
--- a/charts/keycloakx/templates/statefulset.yaml
+++ b/charts/keycloakx/templates/statefulset.yaml
@@ -88,7 +88,7 @@ spec:
           env:
             {{- if .Values.http.relativePath }}
             - name: KC_HTTP_RELATIVE_PATH
-              value: {{ tpl .Values.http.relativePath $ | trimSuffix "/" }}
+              value: {{ tpl .Values.http.relativePath $ }}
             {{- end }}
             {{- if eq .Values.cache.stack "default" }}
             - name: KC_CACHE

Footur avatar Aug 03 '22 11:08 Footur

FYI the PR resolving the issue with relative path (#635) is merged.

grieshaber avatar Aug 05 '22 06:08 grieshaber

.. nvm, we're all talking about different charts here. The relative path issue was related to keycloakx, but the issue is quoting from keycloak-chart.

grieshaber avatar Aug 05 '22 06:08 grieshaber

This issue has been marked as stale because it has been open for 30 days with no activity. It will be automatically closed in 10 days if no further activity occurs.

github-actions[bot] avatar Nov 20 '22 12:11 github-actions[bot]