From 7041f856446e72c42b42eefceab290f249542086 Mon Sep 17 00:00:00 2001 From: "kevin.tumma@knecon.com" Date: Fri, 8 Dec 2023 10:50:36 +0100 Subject: [PATCH] Variable Mount of DVC SecretIf --- templates/testsuite-pod.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/testsuite-pod.yaml b/templates/testsuite-pod.yaml index 5ba91cb..6ea1368 100644 --- a/templates/testsuite-pod.yaml +++ b/templates/testsuite-pod.yaml @@ -165,6 +165,7 @@ spec: requests: cpu: "500m" memory: "4096Mi" + {{- if .Values.dvc.sshKey -}} volumeMounts: - mountPath: /keys name: ssh-keys-dvc @@ -175,3 +176,4 @@ spec: secret: defaultMode: 0400 secretName: ssh-keys-dvc + {{- end }}