Skip to content

Commit

Permalink
Merge pull request goharbor#1301 from haminhcong/fix-helm-migration-j…
Browse files Browse the repository at this point in the history
…ob-external-secret

Fix Helm Database Migration Job
  • Loading branch information
MinerYang authored Sep 22, 2022
2 parents 2efdb42 + 27f95da commit 28c3324
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/core/core-pre-upgrade-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ spec:
name: "{{ template "harbor.core" . }}"
- secretRef:
name: "{{ template "harbor.core" . }}"
{{- if .Values.database.external.existingSecret }}
env:
- name: POSTGRESQL_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.database.external.existingSecret }}
key: password
{{- end }}
volumeMounts:
- name: config
mountPath: /etc/core/app.conf
Expand Down

0 comments on commit 28c3324

Please sign in to comment.