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

feat: add extraVolumes + extraVolumeMount #192

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
15 changes: 13 additions & 2 deletions imgproxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,13 @@ spec:
{{- else if (include "serviceAccount.enabled" $) }}
serviceAccountName: "{{ template "imgproxy.fullname" $ }}-service-account"
{{- end }}
{{- if .Values.persistence.enabled }}
volumes:
- name: empty-dir
emptyDir: {}
{{- if .Values.extraVolumes }}
{{ .Values.extraVolumes | toYaml | nindent 8 }}
{{- end }}
{{- if .Values.persistence.enabled }}
- name: data
persistentVolumeClaim:
claimName: {{ include "imgproxy.pvcName" . }}
Expand Down Expand Up @@ -105,8 +110,14 @@ spec:
name: {{ $secretName }}
{{- end }}
resources: {{ include "imgproxy.podResources" $ | nindent 12 }}
{{- if .Values.persistence.enabled }}
volumeMounts:
- name: empty-dir
mountPath: /tmp
subPath: tmp-dir
{{- if .Values.extraVolumeMounts}}
{{ .Values.extraVolumeMounts | toYaml | nindent 12}}
{{- end}}
{{- if .Values.persistence.enabled }}
- name: data
mountPath: {{ .Values.persistence.mountPath }}
{{- if .Values.persistence.subPath }}
Expand Down
7 changes: 7 additions & 0 deletions imgproxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1283,3 +1283,10 @@ features:
# custom:
# IMGPROXY_FOO: bar
custom: {}

# extraVolumes Optionally specify extra list of additional volumes for imgproxy; provisioning pod

extraVolumes: []

# extraVolumeMounts Optionally specify extra list of additional volumeMounts for imgproxy; provisioning container
extraVolumeMounts: []