File tree 4 files changed +30
-2
lines changed
4 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ type: application
15
15
# This is the chart version. This version number should be incremented each time you make changes
16
16
# to the chart and its templates, including the app version.
17
17
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
- version : 0.1 .0
18
+ version : 0.2 .0
19
19
20
20
# This is the version number of the application being deployed. This version number should be
21
21
# incremented each time you make changes to the application. Versions are not expected to
22
22
# follow Semantic Versioning. They should reflect the version the application is using.
23
23
# It is recommended to use it with quotes.
24
- appVersion : " v1.1 .0"
24
+ appVersion : " v1.2 .0"
Original file line number Diff line number Diff line change @@ -25,10 +25,12 @@ spec:
25
25
{{- toYaml . | nindent 8 }}
26
26
{{- end }}
27
27
serviceAccountName : {{ include "code-marketplace.serviceAccountName" . }}
28
+ {{- if not .Values.persistence.artifactory.enabled }}
28
29
volumes :
29
30
- name : extensions
30
31
persistentVolumeClaim :
31
32
claimName : {{ include "code-marketplace.fullname" . }}
33
+ {{- end }}
32
34
securityContext :
33
35
{{- toYaml .Values.podSecurityContext | nindent 8 }}
34
36
containers :
@@ -37,18 +39,35 @@ spec:
37
39
{{- toYaml .Values.securityContext | nindent 12 }}
38
40
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
39
41
imagePullPolicy : {{ .Values.image.pullPolicy }}
42
+ {{- if .Values.persistence.artifactory.enabled }}
43
+ env :
44
+ - name : " ARTIFACTORY_TOKEN"
45
+ valueFrom :
46
+ secretKeyRef :
47
+ name : artifactory
48
+ key : token
49
+ {{- end }}
40
50
ports :
41
51
- name : http
42
52
containerPort : 80
43
53
protocol : TCP
44
54
args :
45
55
- --address
46
56
- 0.0.0.0:80
57
+ {{- if .Values.persistence.artifactory.enabled }}
58
+ - --artifactory
59
+ - {{ .Values.persistence.artifactory.uri }}
60
+ - --repo
61
+ - {{ .Values.persistence.artifactory.repo }}
62
+ {{- else }}
47
63
- --extensions-dir
48
64
- /extensions
65
+ {{- end }}
66
+ {{- if not .Values.persistence.artifactory.enabled }}
49
67
volumeMounts :
50
68
- name : extensions
51
69
mountPath : /extensions
70
+ {{- end }}
52
71
livenessProbe :
53
72
httpGet :
54
73
path : /healthz
Original file line number Diff line number Diff line change
1
+ {{- if not .Values.persistence.artifactory.enabled }}
1
2
apiVersion : v1
2
3
kind : PersistentVolumeClaim
3
4
metadata :
9
10
requests :
10
11
storage : {{ .Values.persistence.size | quote }}
11
12
storageClassName : standard
13
+ {{- end }}
Original file line number Diff line number Diff line change @@ -84,4 +84,11 @@ tolerations: []
84
84
affinity : {}
85
85
86
86
persistence :
87
+ artifactory :
88
+ # Use Artifactory for extensions instead of a persistent volume. Make sure
89
+ # to create an `artifactory` secret with a `token` key.
90
+ enabled : false
91
+ uri : https://artifactory.server/artifactory
92
+ repo : extensions
93
+ # Size is ignored when using Artifactory.
87
94
size : 100Gi
You can’t perform that action at this time.
0 commit comments