Merge pull request #5185 from reasonerjt/helm-chart-ca-download

Enable CA cert download on Chart deployment
This commit is contained in:
Wenkai Yin 2018-06-26 10:35:10 +08:00 committed by GitHub
commit dd4c565aff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -50,8 +50,11 @@ spec:
- name: ui-secrets-private-key
mountPath: /etc/ui/private_key.pem
subPath: private_key.pem
{{- if not .Values.insecureRegistry }}
- name: ca-download
mountPath: /etc/ui/ca
mountPath: /etc/ui/ca/ca.crt
subPath: ca.crt
{{- end }}
- name: psc
mountPath: /etc/ui/token
volumes:
@ -70,8 +73,14 @@ spec:
items:
- key: private_key.pem
path: private_key.pem
{{- if not .Values.insecureRegistry }}
- name: ca-download
emptyDir: {}
secret:
secretName: "{{ template "harbor.fullname" . }}-ingress"
items:
- key: ca.crt
path: ca.crt
{{- end }}
- name: psc
emptyDir: {}
{{- with .Values.ui.nodeSelector }}