Skip to content

Commit 5466858

Browse files
jzaehrinJonathan Zaehringergithub-actions[bot]
authored andcommitted
[keycloak] Add support for extra volumes, volumeMounts and initContainers (CloudPirates-io#215)
* [keycloak] Add support for extraVolumes and extraVolumeMounts in keycloak pod * [keycloak] Add support for extraInitContainers in keycloak pod * [keycloak] Update README.md with extraVolumes, extraVolumeMounts and extraInitContainers * [keycloak] Bump chart version to 0.2.0 * Update CHANGELOG.md Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * [keycloak] Always mount /opt/keycloak/data using emptyDir if presistence is disabled * Update CHANGELOG.md Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Jonathan Zaehringer <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e91d54a commit 5466858

File tree

9 files changed

+73
-66
lines changed

9 files changed

+73
-66
lines changed

charts/keycloak/CHANGELOG.md

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,5 @@
11
# Changelog
22

3-
## 0.1.12 (2025-10-06)
3+
## 0.2.0 (2025-10-06)
44

5-
* [mariadb] chore(deps): update mariadb:12.0.2 Docker digest to 03a03a6 ([#208](https://github.com/CloudPirates-io/helm-charts/pull/208))
6-
7-
## <small>0.1.11 (2025-10-06)</small>
8-
9-
* Allow keycloak to have a relative path (#216) ([0237457](https://github.com/CloudPirates-io/helm-charts/commit/0237457)), closes [#216](https://github.com/CloudPirates-io/helm-charts/issues/216)
10-
11-
## <small>0.1.10 (2025-10-02)</small>
12-
13-
* [postgres] chore(deps): update postgres:17.6 Docker digest to e6a4209 (#173) ([beb0b40](https://github.com/CloudPirates-io/helm-charts/commit/beb0b40)), closes [#173](https://github.com/CloudPirates-io/helm-charts/issues/173)
14-
15-
## <small>0.1.9 (2025-10-02)</small>
16-
17-
* add topologySpreadConstraints and trafficDistribution opti… (#209) ([c777fca](https://github.com/CloudPirates-io/helm-charts/commit/c777fca)), closes [#209](https://github.com/CloudPirates-io/helm-charts/issues/209)
18-
19-
## <small>0.1.8 (2025-09-30)</small>
20-
21-
* Feature/command customize (#186) ([a458e15](https://github.com/CloudPirates-io/helm-charts/commit/a458e15)), closes [#186](https://github.com/CloudPirates-io/helm-charts/issues/186)
22-
23-
## <small>0.1.7 (2025-09-29)</small>
24-
25-
* replace deprecated 'proxy' with new proxy parameters (#183) ([d850b7b](https://github.com/CloudPirates-io/helm-charts/commit/d850b7b)), closes [#183](https://github.com/CloudPirates-io/helm-charts/issues/183)
26-
27-
## <small>0.1.6 (2025-09-26)</small>
28-
29-
* [postgres] chore(deps): update postgres:17.6 Docker digest to 0b6428e (#162) ([6293612](https://github.com/CloudPirates-io/helm-charts/commit/6293612)), closes [#162](https://github.com/CloudPirates-io/helm-charts/issues/162)
30-
31-
## <small>0.1.5 (2025-09-25)</small>
32-
33-
* add namespaces to templates, change user/group-ids to 1001 ([31b203b](https://github.com/CloudPirates-io/helm-charts/commit/31b203b))
34-
* add readme documentation and values.schema.json ([369448b](https://github.com/CloudPirates-io/helm-charts/commit/369448b))
35-
* add support for extra env vars from an existing secret (#158) ([263604f](https://github.com/CloudPirates-io/helm-charts/commit/263604f)), closes [#158](https://github.com/CloudPirates-io/helm-charts/issues/158)
36-
* Fix resolving template expressions in extraobjects ([12a1cb5](https://github.com/CloudPirates-io/helm-charts/commit/12a1cb5))
37-
* [postgres] chore(deps): update postgres:17.6 Docker digest to 0f4f200 ([b4a6a30](https://github.com/CloudPirates-io/helm-charts/commit/b4a6a30))
38-
* Add keycloak logo ([bf1e1c2](https://github.com/CloudPirates-io/helm-charts/commit/bf1e1c2))
39-
* Add TODO ([8162d60](https://github.com/CloudPirates-io/helm-charts/commit/8162d60))
40-
* Artifact hub id ([02540ae](https://github.com/CloudPirates-io/helm-charts/commit/02540ae))
41-
* Bump the correct thing ([35e7901](https://github.com/CloudPirates-io/helm-charts/commit/35e7901))
42-
* Fix chart version bump ([aae07b1](https://github.com/CloudPirates-io/helm-charts/commit/aae07b1))
43-
* Fix deprecated env vars warning ([50d9fa0](https://github.com/CloudPirates-io/helm-charts/commit/50d9fa0))
44-
* Fix lint ([4bf9e77](https://github.com/CloudPirates-io/helm-charts/commit/4bf9e77))
45-
* Fix lint 2 ([a38fc35](https://github.com/CloudPirates-io/helm-charts/commit/a38fc35))
46-
* Fix lint 3 ([0875bfa](https://github.com/CloudPirates-io/helm-charts/commit/0875bfa))
47-
* Fix lint 4 ([7fcbd78](https://github.com/CloudPirates-io/helm-charts/commit/7fcbd78))
48-
* Improvements ([cea8f2c](https://github.com/CloudPirates-io/helm-charts/commit/cea8f2c))
49-
* Initial implementation ([c5d41ec](https://github.com/CloudPirates-io/helm-charts/commit/c5d41ec))
50-
* Rework keycloak ([2afb0fd](https://github.com/CloudPirates-io/helm-charts/commit/2afb0fd))
51-
* Update CHANGELOG.md ([b7572a8](https://github.com/CloudPirates-io/helm-charts/commit/b7572a8))
52-
* Update CHANGELOG.md ([245f9b6](https://github.com/CloudPirates-io/helm-charts/commit/245f9b6))
53-
* Update CHANGELOG.md ([0bf9f75](https://github.com/CloudPirates-io/helm-charts/commit/0bf9f75))
54-
* Update CHANGELOG.md ([03d476e](https://github.com/CloudPirates-io/helm-charts/commit/03d476e))
55-
* Update CHANGELOG.md ([20c19bb](https://github.com/CloudPirates-io/helm-charts/commit/20c19bb))
56-
* Update CHANGELOG.md ([68435aa](https://github.com/CloudPirates-io/helm-charts/commit/68435aa))
57-
* Update CHANGELOG.md ([b8adca8](https://github.com/CloudPirates-io/helm-charts/commit/b8adca8))
58-
* Update CHANGELOG.md ([62e51b9](https://github.com/CloudPirates-io/helm-charts/commit/62e51b9))
59-
* Update CHANGELOG.md ([54f725e](https://github.com/CloudPirates-io/helm-charts/commit/54f725e))
60-
* Update CHANGELOG.md ([2ed9b3f](https://github.com/CloudPirates-io/helm-charts/commit/2ed9b3f))
61-
* Update CHANGELOG.md ([2178148](https://github.com/CloudPirates-io/helm-charts/commit/2178148))
62-
* Update CHANGELOG.md ([8d6710f](https://github.com/CloudPirates-io/helm-charts/commit/8d6710f))
63-
* chore: fix changelog ([bd9f1a8](https://github.com/CloudPirates-io/helm-charts/commit/bd9f1a8))
5+
* [keycloak] Add support for extra volumes, volumeMounts and initContainers ([#215](https://github.com/CloudPirates-io/helm-charts/pull/215))

charts/keycloak/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: keycloak
33
description: Open Source Identity and Access Management Solution
44
type: application
5-
version: 0.1.12
5+
version: 0.2.0
66
appVersion: "26.3.4"
77
keywords:
88
- keycloak

charts/keycloak/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,19 @@ The following table lists the configurable parameters of the Keycloak chart and
9999
| `podAnnotations` | Map of annotations to add to the pods | `{}` |
100100
| `podLabels` | Map of labels to add to the pods | `{}` |
101101

102+
### Extra volumes and volumes mount
103+
104+
| Parameter | Description | Default |
105+
| ------------------- | ----------------------------------------------------- | ------- |
106+
| `extraVolumes` | Array of Volume to add to the keycloak pod | `[]` |
107+
| `extraVolumeMounts` | Array of VolumeMount to add to the keycloak container | `[]` |
108+
109+
### Extra init containers for Keycloak pod
110+
111+
| Parameter | Description | Default |
112+
| --------------------- | ----------------------------------------------------- | ------- |
113+
| `extraInitContainers` | Array of initContainer to add to the keycloak pod | `[]` |
114+
102115
### Security
103116

104117
| Parameter | Description | Default |

charts/keycloak/templates/deployment.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ spec:
5252
image: {{ .Values.initContainers.waitForMariadb.image }}
5353
command: ["sh", "-c", "until mysqladmin ping -h {{ .Release.Name }}-mariadb -P 3306 --silent; do echo waiting for database; sleep 2; done;"]
5454
{{- end }}
55+
{{- if .Values.extraInitContainers }}
56+
{{- toYaml .Values.extraInitContainers | nindent 8 }}
57+
{{- end }}
5558
containers:
5659
- name: {{ .Chart.Name }}
5760
securityContext:
@@ -204,10 +207,8 @@ spec:
204207
resources:
205208
{{- toYaml .Values.resources | nindent 12 }}
206209
volumeMounts:
207-
{{- if .Values.persistence.enabled }}
208210
- name: data
209211
mountPath: /opt/keycloak/data
210-
{{- end }}
211212
{{- if .Values.cache.configFile }}
212213
- name: cache-config
213214
mountPath: /opt/keycloak/conf/cache-ispn.xml
@@ -220,11 +221,18 @@ spec:
220221
mountPath: /opt/keycloak/work
221222
- name: keycloak-lib-quarkus
222223
mountPath: /opt/keycloak/lib/quarkus
224+
{{- if .Values.extraVolumeMounts }}
225+
{{- toYaml .Values.extraVolumeMounts | nindent 12}}
226+
{{- end }}
227+
223228
volumes:
224229
{{- if .Values.persistence.enabled }}
225230
- name: data
226231
persistentVolumeClaim:
227232
claimName: {{ default (include "keycloak.fullname" .) .Values.persistence.existingClaim }}
233+
{{- else }}
234+
- name: data
235+
emptyDir: {}
228236
{{- end }}
229237
{{- if .Values.cache.configFile }}
230238
- name: cache-config
@@ -237,6 +245,9 @@ spec:
237245
emptyDir: {}
238246
- name: keycloak-lib-quarkus
239247
emptyDir: {}
248+
{{- if .Values.extraVolumes }}
249+
{{- toYaml .Values.extraVolumes | nindent 8 }}
250+
{{- end }}
240251
{{- with .Values.nodeSelector }}
241252
nodeSelector:
242253
{{- toYaml . | nindent 8 }}

charts/keycloak/values.schema.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,27 @@
7373
"type": "object",
7474
"description": "Map of labels to add to the pods"
7575
},
76+
"extraVolumes": {
77+
"type": "array",
78+
"items": {
79+
"type": "object"
80+
},
81+
"description": "Array of Volume to add to the keycloak pod"
82+
},
83+
"extraVolumeMounts": {
84+
"type": "array",
85+
"items": {
86+
"type": "object"
87+
},
88+
"description": "Array of VolumeMount to add to the keycloak container"
89+
},
90+
"extraInitContainers": {
91+
"type": "array",
92+
"items": {
93+
"type": "object"
94+
},
95+
"description": "Array of initContainer to add to the keycloak pod"
96+
},
7697
"podSecurityContext": {
7798
"type": "object",
7899
"properties": {

charts/keycloak/values.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,22 @@ podAnnotations: {}
3838
## @param podLabels Map of labels to add to the pods
3939
podLabels: {}
4040

41+
## @section extra volumes and volumes mount
42+
## @param extraVolumes Optionally specify extra list of additional volumes for Keycloak pod
43+
extraVolumes: []
44+
## @param extraVolumeMounts Optionally specify extra list of additional volumeMounts for Keycloak container
45+
extraVolumeMounts: []
46+
47+
## @section Extra init containers for Keycloak pod
48+
## @param Optionnaly specify an extra list of initContainer for the Keycloak pod
49+
## Example:
50+
## initContainers:
51+
## - name: <container-name>
52+
## image: <your-image>
53+
## imagePullPolicy: Always
54+
##
55+
extraInitContainers: []
56+
4157
## @section Security Context
4258
podSecurityContext:
4359
## @param podSecurityContext.fsGroup Group ID for the volumes of the pod

charts/minio/templates/post-job.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
{{- include "minio.labels" . | nindent 4 }}
9+
{{- if .Values.commonAnnotations }}
910
annotations:
10-
{{- if .Values.commonAnnotations }}
1111
{{- include "minio.annotations" . | nindent 4 }}
12-
{{- end }}
12+
{{- end }}
1313
spec:
1414
ttlSecondsAfterFinished: 600
1515
activeDeadlineSeconds: 300

charts/minio/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,11 @@
183183
}
184184
}
185185
},
186+
"defaultBuckets": {
187+
"type": "string",
188+
"title": "Default Buckets",
189+
"description": "Comma, semi-colon or space separated list of buckets to create at initialization"
190+
},
186191
"replicaCount": {
187192
"type": "integer",
188193
"title": "Replica Count",

charts/minio/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ config:
7373
## @param config.extraEnvVars Extra environment variables to be set on MinIO containers
7474
extraEnvVars: []
7575

76-
## @section Bucket provisioning
7776
## @param defaultBuckets Comma, semi-colon or space separated list of buckets to create at initialization
7877
## Format: "bucket-name" or "bucket-name:policy" where policy can be: none, download, upload, or public
7978
## e.g: "my-bucket, my-second-bucket:download, my-public-bucket:public"

0 commit comments

Comments
 (0)