Repository navigation
Commit 63f9926
authored
feat(keycloak): allow overriding the database host/port/properties (#2907)
## What this PR does
Makes the Keycloak database connection target configurable, so the
connection
can be routed through an external endpoint (for example a connection
proxy such
as PgBouncer or another pgwire proxy) without forking the chart:
- `db.host` / `db.port` — override the host/port otherwise read from the
`keycloak-db-app` secret.
- `db.urlProperties` — sets `KC_DB_URL_PROPERTIES` (previously never
set), e.g.
`?sslmode=verify-full&prepareThreshold=0&sslrootcert=/etc/keycloak-db-ca/ca.crt`.
- `extraVolumes` / `extraVolumeMounts` — mount additional volumes on the
Keycloak container (e.g. a CA for `sslrootcert`).
All new values default to empty, so the rendered StatefulSet is
byte-for-byte
unchanged for existing installs (verified with `helm template`).
Credentials
and database name are still taken from the `keycloak-db-app` secret.
### Release note
```release-note
feat(keycloak): allow overriding the database host/port/URL properties (db.host, db.port, db.urlProperties) and add extraVolumes/extraVolumeMounts, so the DB connection can be routed through an external proxy
```
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Keycloak database host and port are now configurable through
deployment values
* Added support for custom database connection properties
* Enhanced container storage configuration with additional volume and
mount options
<!-- end of auto-generated comment: release notes by coderabbit.ai -->2 files changed
Lines changed: 50 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| 152 | + | |
149 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
150 | 157 | | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| 161 | + | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| |||
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
169 | 181 | | |
170 | 182 | | |
171 | 183 | | |
| |||
175 | 187 | | |
176 | 188 | | |
177 | 189 | | |
178 | | - | |
| 190 | + | |
179 | 191 | | |
| 192 | + | |
180 | 193 | | |
181 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
182 | 199 | | |
183 | 200 | | |
184 | 201 | | |
| |||
207 | 224 | | |
208 | 225 | | |
209 | 226 | | |
210 | | - | |
| 227 | + | |
211 | 228 | | |
| 229 | + | |
212 | 230 | | |
213 | 231 | | |
214 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
215 | 237 | | |
216 | 238 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments