Merge pull request #5196 from jkroepke/ui-ingress

Helm: Do not mount secret if ingress is disabled
This commit is contained in:
Wenkai Yin 2018-06-29 13:05:10 +08:00 committed by GitHub
commit de7b10c9f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ spec:
- name: ui-secrets-private-key
mountPath: /etc/ui/private_key.pem
subPath: private_key.pem
{{- if not .Values.insecureRegistry }}
{{- if and (not .Values.insecureRegistry) .Values.ingress.enabled }}
- name: ca-download
mountPath: /etc/ui/ca/ca.crt
subPath: ca.crt
@ -73,7 +73,7 @@ spec:
items:
- key: private_key.pem
path: private_key.pem
{{- if not .Values.insecureRegistry }}
{{- if and (not .Values.insecureRegistry) .Values.ingress.enabled }}
- name: ca-download
secret:
secretName: "{{ template "harbor.fullname" . }}-ingress"