From ba36dad54c2cacf3af41a8e38d71fe4c0eaddfc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Wed, 27 Jun 2018 22:49:17 +0200 Subject: [PATCH] Do not mount secret if ingress is disabled --- contrib/helm/harbor/templates/ui/ui-dpl.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/helm/harbor/templates/ui/ui-dpl.yaml b/contrib/helm/harbor/templates/ui/ui-dpl.yaml index cfbba5405..6db0ef963 100644 --- a/contrib/helm/harbor/templates/ui/ui-dpl.yaml +++ b/contrib/helm/harbor/templates/ui/ui-dpl.yaml @@ -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"