Skip to content

Commit

Permalink
Merge pull request #114 from javanthropus/support-custom-volumes
Browse files Browse the repository at this point in the history
Add support for defining additional volumes
  • Loading branch information
toelke authored Feb 19, 2024
2 parents cda4979 + 2e63a34 commit a753e9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/wave/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ spec:
{{- if .Values.syncPeriod }}
- --sync-period={{ .Values.syncPeriod }}
{{- end }}
volumeMounts: {{ toYaml .Values.extraVolumeMounts | nindent 12 }}
securityContext: {{ toYaml .Values.securityContext | nindent 8 }}
serviceAccountName: {{ .Values.serviceAccount.name | default (include "wave-fullname" .) }}
nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
volumes: {{ toYaml .Values.extraVolumes | nindent 8 }}
10 changes: 10 additions & 0 deletions charts/wave/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ nodeSelector: {}
# Replicas > 1 will enable leader election
replicas: 1

# Additional volumes to use in the pod.
extraVolumes: []
# - name: tmp
# emptyDir: {}

# Additional volumes to mount into the container.
extraVolumeMounts: []
# - name: tmp
# mountPath: /tmp

# https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext:
runAsNonRoot: true
Expand Down

0 comments on commit a753e9c

Please sign in to comment.