mirror of
https://github.com/bitnami/charts.git
synced 2026-02-10 20:07:22 +08:00
[bitnami/keycloak] Add externalDatabase.extraParams for custom JDBC connection parameters (#35770)
* add extraParams Signed-off-by: reyvonger <vladimir@pankin.org> * update chart version Signed-off-by: reyvonger <vladimir@pankin.org> * [bitnami/keycloak] Add externalDatabase.extraParams for custom JDBC connection parameters Signed-off-by: reyvonger <vladimir@pankin.org> * [bitnami/keycloak] Add externalDatabase.extraParams for custom JDBC connection parameters Signed-off-by: reyvonger <vladimir@pankin.org> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> * Bump minor version Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> --------- Signed-off-by: reyvonger <vladimir@pankin.org> Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com> Signed-off-by: Carlos Rodríguez Hernández <carlos.rodriguez-hernandez@broadcom.com> Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com> Co-authored-by: Carlos Rodríguez Hernández <carlos.rodriguez-hernandez@broadcom.com> Co-authored-by: Miguel Ruiz <miguel.ruiz@broadcom.com>
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 25.1.2 (2025-08-20)
|
||||
## 25.2.0 (2025-08-21)
|
||||
|
||||
* [bitnami/keycloak] :zap: :arrow_up: Update dependency references ([#36151](https://github.com/bitnami/charts/pull/36151))
|
||||
* [bitnami/keycloak] Add externalDatabase.extraParams for custom JDBC connection parameters ([#35770](https://github.com/bitnami/charts/pull/35770))
|
||||
|
||||
## <small>25.1.2 (2025-08-20)</small>
|
||||
|
||||
* [bitnami/keycloak] :zap: :arrow_up: Update dependency references (#36151) ([be87b21](https://github.com/bitnami/charts/commit/be87b21456910bc3a0c8731be470b48fb5ed32d3)), closes [#36151](https://github.com/bitnami/charts/issues/36151)
|
||||
|
||||
## <small>25.1.1 (2025-08-19)</small>
|
||||
|
||||
|
||||
@@ -36,4 +36,4 @@ maintainers:
|
||||
name: keycloak
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/keycloak
|
||||
version: 25.1.2
|
||||
version: 25.2.0
|
||||
@@ -698,6 +698,7 @@ There are cases where you may want to deploy extra objects, such a ConfigMap con
|
||||
| `externalDatabase.existingSecretUserKey` | Name of an existing secret key containing the database user | `""` |
|
||||
| `externalDatabase.existingSecretPasswordKey` | Name of an existing secret key containing the database credentials | `""` |
|
||||
| `externalDatabase.annotations` | Additional custom annotations for external database secret object | `{}` |
|
||||
| `externalDatabase.extraParams` | Additional JDBC connection parameters appended to the JDBC URL (KC_DB_URL). | `""` |
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||
|
||||
|
||||
@@ -150,6 +150,15 @@ Return the Database schema
|
||||
{{- ternary "public" .Values.externalDatabase.schema .Values.postgresql.enabled -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return extra connection parameters for the Database DSN
|
||||
*/}}
|
||||
{{- define "keycloak.database.extraParams" -}}
|
||||
{{- if .Values.externalDatabase.extraParams -}}
|
||||
{{- printf "&%s" (tpl .Values.externalDatabase.extraParams .) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the Database secret name
|
||||
*/}}
|
||||
|
||||
@@ -40,7 +40,7 @@ data:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
KC_METRICS_ENABLED: {{ ternary "true" "false" .Values.metrics.enabled | quote }}
|
||||
KC_DB_URL: {{ printf "jdbc:postgresql://%s:%d/%s?currentSchema=%s" (include "keycloak.database.host" .) (include "keycloak.database.port" . | int) (include "keycloak.database.name" .) (include "keycloak.database.schema" .) | quote }}
|
||||
KC_DB_URL: {{ printf "jdbc:postgresql://%s:%d/%s?currentSchema=%s%s" (include "keycloak.database.host" .) (include "keycloak.database.port" . | int) (include "keycloak.database.name" .) (include "keycloak.database.schema" .) (include "keycloak.database.extraParams" .) | quote }}
|
||||
KC_DB_SCHEMA: {{ include "keycloak.database.schema" . | quote }}
|
||||
{{- if .Values.usePasswordFiles }}
|
||||
KC_DB_PASSWORD_FILE: {{ printf "/opt/bitnami/keycloak/secrets/db-%s" (include "keycloak.database.secretPasswordKey" .) }}
|
||||
|
||||
@@ -1279,6 +1279,7 @@ postgresql:
|
||||
## @param externalDatabase.existingSecretUserKey Name of an existing secret key containing the database user
|
||||
## @param externalDatabase.existingSecretPasswordKey Name of an existing secret key containing the database credentials
|
||||
## @param externalDatabase.annotations Additional custom annotations for external database secret object
|
||||
## @param externalDatabase.extraParams Additional JDBC connection parameters appended to the JDBC URL (KC_DB_URL).
|
||||
##
|
||||
externalDatabase:
|
||||
host: ""
|
||||
@@ -1291,3 +1292,4 @@ externalDatabase:
|
||||
existingSecretUserKey: ""
|
||||
existingSecretPasswordKey: ""
|
||||
annotations: {}
|
||||
extraParams: ""
|
||||
Reference in New Issue
Block a user