[bitnami/keycloak] Use database user secret key from PostgreSQL chart (#29008)

* [bitnami/keycloak] use database user secret key from postgresql chart

Signed-off-by: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

---------

Signed-off-by: Ahmed AbouZaid <6760103+aabouzaid@users.noreply.github.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Ahmed AbouZaid
2024-08-26 09:47:44 +02:00
committed by GitHub
parent 77376c3e67
commit bf7ea4a17d
5 changed files with 12 additions and 4 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 22.1.3 (2024-08-22)
## 22.2.0 (2024-08-25)
* [bitnami/keycloak] Release 22.1.3 ([#28984](https://github.com/bitnami/charts/pull/28984))
* [bitnami/keycloak] Use database user secret key from PostgreSQL chart ([#29008](https://github.com/bitnami/charts/pull/29008))
## <small>22.1.3 (2024-08-22)</small>
* [bitnami/keycloak] Release 22.1.3 (#28984) ([bb21c84](https://github.com/bitnami/charts/commit/bb21c84c422bdef42fad01db0252798d33e3499d)), closes [#28984](https://github.com/bitnami/charts/issues/28984)
## <small>22.1.2 (2024-08-19)</small>

View File

@@ -33,4 +33,4 @@ maintainers:
name: keycloak
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/keycloak
version: 22.1.3
version: 22.2.0

View File

@@ -622,6 +622,7 @@ As an alternative, you can use of the preset configurations for pod affinity, po
| `postgresql.auth.password` | Password for the custom user to create | `""` |
| `postgresql.auth.database` | Name for a custom database to create | `bitnami_keycloak` |
| `postgresql.auth.existingSecret` | Name of existing secret to use for PostgreSQL credentials | `""` |
| `postgresql.auth.secretKeys.userPasswordKey` | Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set. | `password` |
| `postgresql.architecture` | PostgreSQL architecture (`standalone` or `replication`) | `standalone` |
| `externalDatabase.host` | Database host | `""` |
| `externalDatabase.port` | Database port number | `5432` |

View File

@@ -177,7 +177,7 @@ Add environment variables to configure database values
*/}}
{{- define "keycloak.databaseSecretPasswordKey" -}}
{{- if .Values.postgresql.enabled -}}
{{- print "password" -}}
{{- printf "%s" (.Values.postgresql.auth.secretKeys.userPasswordKey | default "password") -}}
{{- else -}}
{{- if .Values.externalDatabase.existingSecret -}}
{{- if .Values.externalDatabase.existingSecretPasswordKey -}}

View File

@@ -1301,6 +1301,7 @@ keycloakConfigCli:
## @param postgresql.auth.password Password for the custom user to create
## @param postgresql.auth.database Name for a custom database to create
## @param postgresql.auth.existingSecret Name of existing secret to use for PostgreSQL credentials
## @param postgresql.auth.secretKeys.userPasswordKey Name of key in existing secret to use for PostgreSQL credentials. Only used when `auth.existingSecret` is set.
## @param postgresql.architecture PostgreSQL architecture (`standalone` or `replication`)
##
postgresql:
@@ -1311,6 +1312,8 @@ postgresql:
password: ""
database: bitnami_keycloak
existingSecret: ""
secretKeys:
userPasswordKey: password
architecture: standalone
## External PostgreSQL configuration
## All of these values are only used when postgresql.enabled is set to false