File tree Expand file tree Collapse file tree 4 files changed +49
-0
lines changed Expand file tree Collapse file tree 4 files changed +49
-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 40
40
args :
41
41
{{- include "piped.pipedArgs" . | nindent 12 }}
42
42
{{- end }}
43
+ {{- if .Values.temporaryVolume.create }}
44
+ lifecycle :
45
+ postStart :
46
+ exec :
47
+ command : ["/bin/rm", "-rf", "/tmp/*"]
48
+ {{- end }}
43
49
ports :
44
50
- name : admin
45
51
containerPort : 9085
62
68
- name : piped-config
63
69
mountPath : /etc/piped-config
64
70
readOnly : true
71
+ {{- if .Values.temporaryVolume.create }}
72
+ - name : piped-temporary-volume
73
+ mountPath : " /tmp"
74
+ readOnly : false
75
+ {{- end }}
65
76
resources :
66
77
{{- toYaml .Values.resources | nindent 12 }}
67
78
{{- with .Values.envs }}
76
87
- name : piped-config
77
88
configMap :
78
89
name : {{ include "piped.configMapName" . }}
90
+ {{- if .Values.temporaryVolume.create }}
91
+ - name : piped-temporary-volume
92
+ persistentVolumeClaim :
93
+ claimName : {{ include "piped.temporaryVolumeName" . }}
94
+ {{- end }}
79
95
{{- with .Values.securityContext }}
80
96
securityContext :
81
97
{{- 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
+ accessModes :
10
+ - ReadWriteOnce
11
+ resources :
12
+ requests :
13
+ storage : {{ .Values.temporaryVolume.size }}
14
+ {{- end}}
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ 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 size of the persistent volume claim.
90
+ size : 100Gi
91
+
84
92
envs : []
85
93
86
94
securityContext :
You can’t perform that action at this time.
0 commit comments