Skip to content

Commit

Permalink
allow add extra volumes and mounts in Helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
seboudry committed Aug 2, 2024
1 parent e4e088d commit 3eaa94d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
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

0 comments on commit 3eaa94d

Please sign in to comment.