Skip to content

Commit

Permalink
Merge pull request #153 from projectsyn/v9.0.0-external-database-host…
Browse files Browse the repository at this point in the history
…name

Fix variable database.external.host not passed to the helm chart values
  • Loading branch information
megian authored Jul 15, 2022
2 parents c94522a + 1137c87 commit 289b65a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ parameters:
# Used when `provider=external`
external:
vendor: postgres
host: postgres.example.com
host: keycloak-postgresql # Default for database provider builtin. If external use the FQDN postgres.example.com.
port: 5432

k8up:
Expand Down Expand Up @@ -269,7 +269,7 @@ parameters:
enabled: ${keycloak:monitoring:enabled}
database:
vendor: ${keycloak:database:external:vendor}
hostname: keycloak-postgresql
hostname: ${keycloak:database:external:host}
port: ${keycloak:database:external:port}
database: ${keycloak:database:database}
username: ${keycloak:database:username}
Expand Down
2 changes: 2 additions & 0 deletions tests/external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ parameters:
jdbcParams: sslmode=verify-ca&sslrootcert=/etc/ssl/certs/ca-bundle.crt
tls:
verification: verify
external:
host: postgres.example.com
tls:
provider: vault
ingress:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
- name: KC_DB_URL_DATABASE
value: keycloak
- name: KC_DB_URL_HOST
value: keycloak-postgresql
value: postgres.example.com
- name: KC_DB_URL_PORT
value: '5432'
- name: KC_DB_USERNAME
Expand Down Expand Up @@ -160,8 +160,8 @@ spec:
- sh
- -c
- "echo 'Waiting for Database to become ready...'\n\nuntil printf \".\" &&\
\ nc -z -w 2 keycloak-postgresql 5432; do\n sleep 2;\ndone;\n\necho 'Database\
\ OK \u2713'\n"
\ nc -z -w 2 postgres.example.com 5432; do\n sleep 2;\ndone;\n\necho\
\ 'Database OK \u2713'\n"
image: docker.io/busybox:1.32
imagePullPolicy: IfNotPresent
name: dbchecker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
- name: KC_DB_URL_DATABASE
value: keycloak_dev
- name: KC_DB_URL_HOST
value: keycloak-postgresql
value: maxscale-masteronly
- name: KC_DB_URL_PORT
value: '3306'
- name: KC_DB_USERNAME
Expand Down Expand Up @@ -167,7 +167,7 @@ spec:
- sh
- -c
- "echo 'Waiting for Database to become ready...'\n\nuntil printf \".\" &&\
\ nc -z -w 2 keycloak-postgresql 3306; do\n sleep 2;\ndone;\n\necho 'Database\
\ nc -z -w 2 maxscale-masteronly 3306; do\n sleep 2;\ndone;\n\necho 'Database\
\ OK \u2713'\n"
image: docker.io/busybox:1.32
imagePullPolicy: IfNotPresent
Expand Down

0 comments on commit 289b65a

Please sign in to comment.