Skip to content

Commit 914759c

Browse files
committed
Update Helm chart to use 1.2.0
1 parent 9824448 commit 914759c

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.2.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "v1.1.0"
24+
appVersion: "v1.2.0"

helm/templates/deployment.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ spec:
2525
{{- toYaml . | nindent 8 }}
2626
{{- end }}
2727
serviceAccountName: {{ include "code-marketplace.serviceAccountName" . }}
28+
{{- if not .Values.persistence.artifactory.enabled }}
2829
volumes:
2930
- name: extensions
3031
persistentVolumeClaim:
3132
claimName: {{ include "code-marketplace.fullname" . }}
33+
{{- end }}
3234
securityContext:
3335
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3436
containers:
@@ -37,18 +39,35 @@ spec:
3739
{{- toYaml .Values.securityContext | nindent 12 }}
3840
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3941
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 }}
4050
ports:
4151
- name: http
4252
containerPort: 80
4353
protocol: TCP
4454
args:
4555
- --address
4656
- 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 }}
4763
- --extensions-dir
4864
- /extensions
65+
{{- end }}
66+
{{- if not .Values.persistence.artifactory.enabled }}
4967
volumeMounts:
5068
- name: extensions
5169
mountPath: /extensions
70+
{{- end }}
5271
livenessProbe:
5372
httpGet:
5473
path: /healthz

helm/templates/pvc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if not .Values.persistence.artifactory.enabled }}
12
apiVersion: v1
23
kind: PersistentVolumeClaim
34
metadata:
@@ -9,3 +10,4 @@ spec:
910
requests:
1011
storage: {{ .Values.persistence.size | quote }}
1112
storageClassName: standard
13+
{{- end }}

helm/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,11 @@ tolerations: []
8484
affinity: {}
8585

8686
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.
8794
size: 100Gi

0 commit comments

Comments
 (0)