From 807812a757ec9db502e07f4dcccb4fdc17fe79a5 Mon Sep 17 00:00:00 2001 From: "Sam Wang (holyspectral)" Date: Wed, 21 Aug 2024 15:38:33 -0400 Subject: [PATCH] fix: volumeMounts for both internl and SSL --- charts/core/templates/registry-adapter.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/core/templates/registry-adapter.yaml b/charts/core/templates/registry-adapter.yaml index 10cfb650..6f636f16 100644 --- a/charts/core/templates/registry-adapter.yaml +++ b/charts/core/templates/registry-adapter.yaml @@ -114,7 +114,8 @@ spec: subPath: {{ .Values.cve.adapter.internal.certificate.caFile }} name: internal-cert readOnly: true - {{- else if .Values.cve.adapter.certificate.secret }} + {{- end }} + {{- if .Values.cve.adapter.certificate.secret }} - mountPath: /etc/neuvector/certs/ssl-cert.key subPath: {{ .Values.cve.adapter.certificate.keyFile }} name: cert