File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
deploy/helm/sftp/templates Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
1
+ {{- if .Values.configuration }}
1
2
apiVersion : v1
2
3
kind : Secret
3
4
metadata :
@@ -8,4 +9,5 @@ type: Opaque
8
9
stringData :
9
10
sftp.json : |-
10
11
{{ .Values.configuration | toPrettyJson | nindent 4 }}
12
+ {{- end }}
11
13
Original file line number Diff line number Diff line change @@ -32,25 +32,33 @@ spec:
32
32
- name : ssh
33
33
containerPort : 22
34
34
protocol : TCP
35
+ {{- if or .Values.configuration .Values.storage.volumeMounts }}
35
36
volumeMounts :
37
+ {{- if .Values.configuration }}
36
38
- name : sftp-json
37
39
mountPath : " /app"
38
40
readOnly : true
41
+ {{- end }}
39
42
{{- with .Values.storage.volumeMounts }}
40
43
{{- toYaml . | nindent 12 }}
41
44
{{- end }}
45
+ {{- end }}
42
46
resources :
43
47
{{- toYaml .Values.resources | nindent 12 }}
48
+ {{- if or .Values.configuration .Values.storage.volumes }}
44
49
volumes :
50
+ {{- if .Values.configuration }}
45
51
- name : sftp-json
46
52
secret :
47
53
secretName : {{ include "sftp.fullname" . }}
48
54
items :
49
55
- key : sftp.json
50
56
path : sftp.json
57
+ {{- end }}
51
58
{{- with .Values.storage.volumes }}
52
59
{{- toYaml . | nindent 8 }}
53
60
{{- end }}
61
+ {{- end }}
54
62
{{- with .Values.nodeSelector }}
55
63
nodeSelector :
56
64
{{- toYaml . | nindent 8 }}
You can’t perform that action at this time.
0 commit comments