[bitnami/keycloak] fix: consider httpRelativePath for metrics (#36219)

* [bitnami/keycloak] fix: consider httpRelativePath for metrics

When a relative path is set, this path is used as a prefix to the
metrics path: https://www.keycloak.org/server/management-interface#_relative_path

This issue was introduced with the recent metrics refactorings.

Signed-off-by: Marius Svechla <m.svechla@gmail.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Marius Svechla <m.svechla@gmail.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
msvechla
2025-09-11 13:16:58 +02:00
committed by GitHub
parent 7210c0ac59
commit 43577c3f2b
4 changed files with 8 additions and 4 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 25.2.2 (2025-09-08)
* [bitnami/keycloak] fix: consider httpRelativePath for metrics ([#36219](https://github.com/bitnami/charts/pull/36219))
## 25.2.0 (2025-08-21)
* [bitnami/keycloak] Add externalDatabase.extraParams for custom JDBC connection parameters ([#35770](https://github.com/bitnami/charts/pull/35770))
* [bitnami/keycloak] Add externalDatabase.extraParams for custom JDBC connection parameters (#35770) ([d7ec0ea](https://github.com/bitnami/charts/commit/d7ec0ea7bff7264df7068ec6e51fbd3493d2c890)), closes [#35770](https://github.com/bitnami/charts/issues/35770)
## <small>25.1.2 (2025-08-20)</small>

View File

@@ -35,4 +35,4 @@ maintainers:
name: keycloak
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/keycloak
version: 25.2.1
version: 25.2.2

View File

@@ -21,7 +21,7 @@ spec:
jobLabel: {{ .Values.metrics.serviceMonitor.jobLabel | quote }}
endpoints:
- port: tcp-metrics
path: "/metrics"
path: "{{ trimSuffix "/" .Values.httpRelativePath }}/metrics"
{{- if .Values.tls.enabled }}
scheme: https
{{- if .Values.metrics.serviceMonitor.tlsConfig }}

View File

@@ -218,7 +218,7 @@ spec:
{{- else if .Values.readinessProbe.enabled }}
readinessProbe: {{- omit .Values.readinessProbe "enabled" | toYaml | nindent 12 }}
httpGet:
path: {{ .Values.httpRelativePath }}realms/{{ .Values.adminRealm | default "master" }}
path: {{ trimSuffix "/" .Values.httpRelativePath }}/realms/{{ .Values.adminRealm | default "master" }}
port: {{ ternary "http" "https" (or .Values.httpEnabled (not .Values.tls.enabled)) }}
scheme: {{ ternary "HTTP" "HTTPS" (or .Values.httpEnabled (not .Values.tls.enabled)) }}
{{- end }}