Skip to content

Commit

Permalink
feat: support extraVolumes and extraVolumeMounts (#205)
Browse files Browse the repository at this point in the history
Add extraVolumes and extraVolumeMounts; closes #127
  • Loading branch information
cr1cr1 committed May 24, 2024
1 parent 262325f commit 68cc3e3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/zitadel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zitadel
description: A Helm chart for ZITADEL
type: application
appVersion: "v2.51.3"
version: 7.14.0
version: 7.15.0
kubeVersion: ">= 1.21.0-0"
icon: https://zitadel.com/zitadel-logo-dark.svg
maintainers:
Expand Down
6 changes: 6 additions & 0 deletions charts/zitadel/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ spec:
- name: tls
mountPath: /etc/tls
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 14 }}
initContainers:
Expand Down Expand Up @@ -268,6 +271,9 @@ spec:
- name: tls
emptyDir: {}
{{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/zitadel/templates/initjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ spec:
mountPath: /config
- name: chowned-secrets
mountPath: /.secrets
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.initJob.resources | nindent 14 }}
{{- if .Values.initJob.extraContainers }}
Expand Down Expand Up @@ -178,6 +181,9 @@ spec:
{{- end }}
- name: chowned-secrets
emptyDir: {}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/zitadel/templates/setupjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ spec:
- name: machinekey
mountPath: "/machinekey"
{{- end}}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 10 }}
{{- end }}
resources:
{{- toYaml .Values.setupJob.resources | nindent 12 }}
{{- if include "deepCheck" (dict "root" .Values "path" (splitList "." "zitadel.configmapConfig.FirstInstance.Org.Machine")) }}
Expand Down Expand Up @@ -200,6 +203,9 @@ spec:
{{- end }}
- name: chowned-secrets
emptyDir: {}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
12 changes: 12 additions & 0 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,15 @@ pdb:
minAvailable: 1
# maxUnavailable: 1
annotations: {}

extraVolumes: []
# - name: ca-certs
# secret:
# defaultMode: 420
# secretName: ca-certs

extraVolumeMounts: []
# - name: ca-certs
# mountPath: /etc/ssl/certs/myca.pem
# subPath: myca.pem
# readOnly: true

0 comments on commit 68cc3e3

Please sign in to comment.