Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow add extra volumes and mounts in Helm chart #315

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions deploy/charts/burrito/templates/controllers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ spec:
subPath: burrito-ca.crt
readOnly: true
{{- end }}
{{- if .deployment.extraVolumeMounts }}
{{- toYaml .deployment.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- with .deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -107,6 +110,9 @@ spec:
- key: {{ $.Values.datastore.tls.caKey }}
path: burrito-ca.crt
{{- end }}
{{- if .deployment.extraVolumes }}
{{- toYaml .deployment.extraVolumes | nindent 8 }}
{{- end }}
{{- if .service.enabled }}
---
apiVersion: v1
Expand Down
6 changes: 6 additions & 0 deletions deploy/charts/burrito/templates/datastore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ spec:
mountPath: /etc/burrito/tls
readOnly: true
{{- end }}
{{- if .deployment.extraVolumeMounts }}
{{- toYaml .deployment.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- with .deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -94,6 +97,9 @@ spec:
secret:
secretName: {{ .tls.secretName }}
{{- end }}
{{- if .deployment.extraVolumes }}
{{- toYaml .deployment.extraVolumes | nindent 8 }}
{{- end }}
{{- if .service.enabled }}
---
apiVersion: v1
Expand Down
6 changes: 6 additions & 0 deletions deploy/charts/burrito/templates/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ spec:
subPath: burrito-ca.crt
readOnly: true
{{- end }}
{{- if .deployment.extraVolumeMounts }}
{{- toYaml .deployment.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- with .deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -106,6 +109,9 @@ spec:
- key: ca.crt
path: burrito-ca.crt
{{- end }}
{{- if .deployment.extraVolumes }}
{{- toYaml .deployment.extraVolumes | nindent 8 }}
{{- end }}
{{- if .service.enabled }}
---
apiVersion: v1
Expand Down
20 changes: 20 additions & 0 deletions deploy/charts/burrito/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ hermitcrab:
value: ""
port: 80
path: /livez
# -- Additional volumes
extraVolumes: {}
# -- Additional volume mounts
extraVolumeMounts: {}

global:
# -- Global metadata configuration
Expand Down Expand Up @@ -233,6 +237,10 @@ global:
ports: []
# -- Global environment variables
envFrom: []
# -- Additional volumes
extraVolumes: {}
# -- Additional volume mounts
extraVolumeMounts: {}
# -- Global service configuration
service:
# -- Enable/Disable service creation for Burrito components
Expand Down Expand Up @@ -276,6 +284,10 @@ controllers:
envFrom: []
# -- Environment variables to pass to the Burrito controller container
env: []
# -- Additional volumes
extraVolumes: {}
# -- Additional volume mounts
extraVolumeMounts: {}
service:
# -- Enable/Disable service creation for the Burrito controller
enabled: false
Expand Down Expand Up @@ -319,6 +331,10 @@ server:
- secretRef:
name: burrito-webhook-secret
optional: true
# -- Additional volumes
extraVolumes: {}
# -- Additional volume mounts
extraVolumeMounts: {}
# -- Service configuration for the Burrito server
service:
ports:
Expand Down Expand Up @@ -376,6 +392,10 @@ datastore:
periodSeconds: 20
# -- Environment variables to pass to the Burrito datastore container
envFrom: []
# -- Additional volumes
extraVolumes: {}
# -- Additional volume mounts
extraVolumeMounts: {}
# -- Service configuration for the Burrito datastore
service:
ports:
Expand Down
Loading