@@ -13,32 +13,67 @@ spec:
1313 labels :
1414 {{- include "streamflow.selectorLabels" . | nindent 8 }}
1515 spec :
16- {{- with .Values.imagePullSecrets }}
17- imagePullSecrets :
18- {{- toYaml . | nindent 8 }}
19- {{- end }}
2016 serviceAccountName : {{ include "streamflow.serviceAccountName" . }}
17+ {{- include "streamflow.imagePullSecrets" . | nindent 6 }}
18+ {{- if .Values.podSecurityContext.enabled }}
2119 securityContext :
22- {{- toYaml .Values.podSecurityContext | nindent 8 }}
20+ {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
21+ {{- end }}
2322 containers :
24- - name : {{ .Chart.Name }}
23+ - name : {{ include "streamflow.fullname" . }}
24+ {{- if .Values.containerSecurityContext.enabled }}
2525 securityContext :
26- {{- toYaml .Values.securityContext | nindent 12 }}
27- image : " {{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
26+ {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
27+ {{- end }}
28+ image : {{ include "streamflow.image" . }}
29+ {{- if .Values.command }}
30+ command : {{ .Values.command }}
31+ {{- end }}
32+ {{- if .Values.args }}
2833 args : {{ .Values.args }}
34+ {{- end }}
2935 imagePullPolicy : {{ .Values.image.pullPolicy }}
36+ {{- if .Values.resources }}
3037 resources :
3138 {{- toYaml .Values.resources | nindent 12 }}
39+ {{- end }}
40+ volumeMounts :
41+ - name : streamflow-config
42+ mountPath : /streamflow/results/streamflow.yml
43+ subPath : streamflow.yml
44+ - name : streamflow-metadata
45+ mountPath : /.streamflow
46+ - name : streamflow-outdir
47+ mountPath : /tmp/streamflow
48+ - name : streamflow-workdir
49+ mountPath : /streamflow/results
50+ {{ if .Values.restartPolicy }}
3251 restartPolicy : {{ .Values.restartPolicy }}
52+ {{- end }}
3353 {{- with .Values.nodeSelector }}
3454 nodeSelector :
3555 {{- toYaml . | nindent 8 }}
3656 {{- end }}
37- {{- with .Values.affinity }}
38- affinity :
39- {{- toYaml . | nindent 8 }}
40- {{- end }}
41- {{- with .Values.tolerations }}
57+ {{- with .Values.tolerations }}
4258 tolerations :
4359 {{- toYaml . | nindent 8 }}
44- {{- end }}
60+ {{- end }}
61+ volumes :
62+ - name : streamflow-metadata
63+ {{- if .Values.persistence.metadata }}
64+ {{ toYaml .Values.persistence.metadata | nindent 10}}
65+ {{- else }}
66+ emptyDir : {}
67+ {{- end }}
68+ - name : streamflow-outdir
69+ {{- if .Values.persistence.outdir }}
70+ {{ toYaml .Values.persistence.outdir | nindent 10}}
71+ {{- else }}
72+ emptyDir : {}
73+ {{- end }}
74+ - name : streamflow-workdir
75+ {{- if .Values.persistence.workdir }}
76+ {{ toYaml .Values.persistence.workdir | nindent 10}}
77+ {{- else }}
78+ emptyDir : {}
79+ {{- end }}
0 commit comments