Skip to content

Commit

Permalink
overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefmih committed Dec 20, 2024
1 parent 13dc381 commit 1bf0fb3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions applications/worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ spec:
{{ end }}
{{ end }}
{{ if .Values.additionalVolumes }}
{{ range .Values.additionalVolumes }}
volumeMounts:
{{- range .Values.additionalVolumes }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{ end }}
{{- end }}
{{ end }}
{{- if .Values.cloudsql.enabled }}
- name: cloud-sql-proxy
Expand Down Expand Up @@ -405,7 +405,7 @@ spec:
{{- end }}
{{- end }}
{{ end }}
{{ if or .Values.pvc.enabled .Values.cloudsql.enabled .Values.emptyDir.enabled .Values.datadogSocketVolume.enabled .Values.fileSecretMounts.enabled .Values.additionalVolumes (len .Values.additionalVolumes | gt 0) }}
{{ if or .Values.pvc.enabled .Values.cloudsql.enabled .Values.emptyDir.enabled .Values.datadogSocketVolume.enabled .Values.fileSecretMounts.enabled (and .Values.additionalVolumes (not (empty .Values.additionalVolumes))) }}
volumes:
{{ if .Values.datadogSocketVolume.enabled }}
- hostPath:
Expand Down Expand Up @@ -439,9 +439,11 @@ spec:
secretName: "{{ .secretName }}"
{{ end }}
{{ end }}
{{ range .Values.additionalVolumes }}
{{ if .Values.additionalVolumes }}
{{- range .Values.additionalVolumes }}
- name: {{ .name }}
{{ .type }}:
{{- toYaml .volumeOptions | nindent 8 }}
{{- toYaml .volumeOptions | nindent 12 }}
{{- end }}
{{ end }}
{{ end }}
8 changes: 4 additions & 4 deletions applications/worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ fileSecretMounts:

# set this to add additional volumes to the deployment
additionalVolumes:
- name: ""
type: ""
mountPath: ""
volumeOptions: {}
# - name: ""
# type: ""
# mountPath: ""
# volumeOptions: {}

0 comments on commit 1bf0fb3

Please sign in to comment.