Upgrade path working for Helm 3.1.0 and 4.1.0 to version 4.2.0

This commit is contained in:
John Peterson
2020-10-06 15:15:02 -07:00
parent e29879e8c9
commit b05b35edf6
6 changed files with 33 additions and 8 deletions

View File

@@ -3,9 +3,7 @@
# and applies various things like initContainers, nginx mainConf, etc
# to enable the artifactory-ha helm chart to work in an openshift environment
artifactory-ha:
###################################
# EDIT TO YOUR DB CONFIGURATION
###################################
databaseUpgradeReady: true
database:
type: "OVERRIDE"
driver: "OVERRIDE"
@@ -28,6 +26,20 @@ artifactory-ha:
enabled: false
masterKey: "OVERRIDE"
joinKey: "OVERRIDE"
customInitContainersBegin: |
- name: "prepare-uid-persistent-volume"
image: "{{ .Values.initContainerImage }}"
imagePullPolicy: "{{ .Values.artifactory.image.pullPolicy }}"
command:
- 'sh'
- '-c'
- >
chown -Rv {{ .Values.artifactory.uid }}:{{ .Values.artifactory.uid }} {{ .Values.artifactory.persistence.mountPath }}
securityContext:
runAsUser: 0
volumeMounts:
- mountPath: "{{ .Values.artifactory.persistence.mountPath }}"
name: volume
postgresql:
enabled: false
nginx: