File tree Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Expand file tree Collapse file tree 4 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,17 @@ Name of Secret containing sensitive data
73
73
{ {- end } }
74
74
{ {- end } }
75
75
76
+ { {/*
77
+ Name of Temporary Volume containing piped configuration
78
+ */} }
79
+ { {- define " piped.temporaryVolumeName" -} }
80
+ { {- if .Values.temporaryVolume.create } }
81
+ { {- include " piped.fullname" . } }
82
+ { {- else } }
83
+ { {- .Values.temporaryVolume.name } }
84
+ { {- end } }
85
+ { {- end } }
86
+
76
87
{ {/*
77
88
Name of ServiceAccount
78
89
*/} }
Original file line number Diff line number Diff line change 62
62
- name : piped-config
63
63
mountPath : /etc/piped-config
64
64
readOnly : true
65
+ {{- if .Values.temporaryVolume.create }}
66
+ - name : piped-temporary-volume
67
+ mountPath : " /tmp"
68
+ readOnly : false
69
+ {{- end }}
65
70
resources :
66
71
{{- toYaml .Values.resources | nindent 12 }}
67
72
{{- with .Values.envs }}
76
81
- name : piped-config
77
82
configMap :
78
83
name : {{ include "piped.configMapName" . }}
84
+ {{- if .Values.temporaryVolume.create }}
85
+ - name : piped-temporary-volume
86
+ persistentVolumeClaim :
87
+ claimName : {{ include "piped.temporaryVolumeName" . }}
88
+ {{- end }}
79
89
{{- with .Values.securityContext }}
80
90
securityContext :
81
91
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.temporaryVolume.create -}}
2
+ apiVersion : v1
3
+ kind : PersistentVolumeClaim
4
+ metadata :
5
+ name : {{ include "piped.temporaryVolumeName" . }}
6
+ labels :
7
+ {{- include "piped.labels" . | nindent 4 }}
8
+ spec :
9
+ storageClassName : {{ .Values.temporaryVolume.storageClassName }}
10
+ accessModes :
11
+ - ReadWriteOnce
12
+ resources :
13
+ requests :
14
+ storage : {{ .Values.temporaryVolume.size }}
15
+ {{- end}}
Original file line number Diff line number Diff line change @@ -81,6 +81,16 @@ secret:
81
81
# Each item of this list has 2 fields "fileName" and "data".
82
82
kubeConfigs : []
83
83
84
+ temporaryVolume :
85
+ # Specifies whether a PersistentVolumeClaim for storing temporary data should be created.
86
+ create : false
87
+ # The name of the PersistentVolumeClaim to use when create is false.
88
+ name : " "
89
+ # The storage class name of the persistent volume claim.
90
+ storageClassName : " "
91
+ # The size of the persistent volume claim.
92
+ size : 100Gi
93
+
84
94
envs : []
85
95
86
96
securityContext :
You can’t perform that action at this time.
0 commit comments