File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,17 @@ spec:
25
25
{{- toYaml . | nindent 8 }}
26
26
{{- end }}
27
27
serviceAccountName : {{ include "code-marketplace.serviceAccountName" . }}
28
- {{- if not .Values.persistence.artifactory.enabled }}
28
+ {{- if or (.Values.volumes) ( not .Values.persistence.artifactory.enabled) }}
29
29
volumes :
30
+ {{- if not .Values.persistence.artifactory.enabled }}
30
31
- name : extensions
31
32
persistentVolumeClaim :
32
33
claimName : {{ include "code-marketplace.fullname" . }}
33
34
{{- end }}
35
+ {{- with .Values.volumes }}
36
+ {{- toYaml . | nindent 8 }}
37
+ {{- end }}
38
+ {{- end }}
34
39
securityContext :
35
40
{{- toYaml .Values.podSecurityContext | nindent 8 }}
36
41
containers :
@@ -63,11 +68,16 @@ spec:
63
68
- --extensions-dir
64
69
- /extensions
65
70
{{- end }}
66
- {{- if not .Values.persistence.artifactory.enabled }}
71
+ {{- if or (.Values.volumeMounts) ( not .Values.persistence.artifactory.enabled) }}
67
72
volumeMounts :
73
+ {{- if not .Values.persistence.artifactory.enabled }}
68
74
- name : extensions
69
75
mountPath : /extensions
70
76
{{- end }}
77
+ {{- with .Values.volumeMounts }}
78
+ {{- toYaml . | nindent 12 }}
79
+ {{- end }}
80
+ {{- end }}
71
81
livenessProbe :
72
82
httpGet :
73
83
path : /healthz
Original file line number Diff line number Diff line change @@ -77,6 +77,19 @@ autoscaling:
77
77
targetCPUUtilizationPercentage : 80
78
78
# targetMemoryUtilizationPercentage: 80
79
79
80
+ # Additional volumes on the output Deployment definition.
81
+ volumes : []
82
+ # - name: foo
83
+ # secret:
84
+ # secretName: mysecret
85
+ # optional: false
86
+
87
+ # Additional volumeMounts on the output Deployment definition.
88
+ volumeMounts : []
89
+ # - name: foo
90
+ # mountPath: "/etc/foo"
91
+ # readOnly: true
92
+
80
93
nodeSelector : {}
81
94
82
95
tolerations : []
You can’t perform that action at this time.
0 commit comments