Skip to content

Commit

Permalink
[bitnami/keycloak] Use database user secret key from PostgreSQL chart (
Browse files Browse the repository at this point in the history
…#29008)

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

Signed-off-by: Ahmed AbouZaid <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: Ahmed AbouZaid <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
aabouzaid and bitnami-bot authored Aug 26, 2024
1 parent 77376c3 commit bf7ea4a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions bitnami/keycloak/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/keycloak/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions bitnami/keycloak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
2 changes: 1 addition & 1 deletion bitnami/keycloak/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down
3 changes: 3 additions & 0 deletions bitnami/keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit bf7ea4a

Please sign in to comment.