From adbce6f9926de2ac022df623b00c72afb005193e Mon Sep 17 00:00:00 2001 From: Marius Ensrud Date: Thu, 20 Aug 2020 10:12:20 +0200 Subject: [PATCH] add volumes --- charts/cups-airprint/templates/deployment.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/charts/cups-airprint/templates/deployment.yaml b/charts/cups-airprint/templates/deployment.yaml index f475963..09004b7 100644 --- a/charts/cups-airprint/templates/deployment.yaml +++ b/charts/cups-airprint/templates/deployment.yaml @@ -63,6 +63,20 @@ spec: {{- else }} emptyDir: {} {{- end -}} + - name: config + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ include "cups-airprint.fullname" . }}-config + {{- else }} + emptyDir: {} + {{- end -}} + - name: spool + {{- if .Values.persistence.enabled }} + persistentVolumeClaim: + claimName: {{ include "cups-airprint.fullname" . }}-spool + {{- else }} + emptyDir: {} + {{- end -}} {{- if .Values.hostNetwork }} hostNetwork: {{ .Values.hostNetwork }} {{- end }}