From c3c8514333128791ca61c3f5bc9b8fc21ff4621a Mon Sep 17 00:00:00 2001 From: Faisal Memon Date: Tue, 17 Sep 2024 14:02:06 -0700 Subject: [PATCH] Change curl --caPath to --capath (#462) Signed-off-by: Faisal Memon Co-authored-by: kfox1111 --- charts/spire/charts/spire-agent/templates/daemonset.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/spire/charts/spire-agent/templates/daemonset.yaml b/charts/spire/charts/spire-agent/templates/daemonset.yaml index c242127..66649b4 100644 --- a/charts/spire/charts/spire-agent/templates/daemonset.yaml +++ b/charts/spire/charts/spire-agent/templates/daemonset.yaml @@ -97,7 +97,7 @@ spec: {{- else }} URL="https://localhost:10250/spec/" {{- end }} - curl --caPath /var/run/secrets/kubernetes.io/serviceaccount/ca.crt "$URL" + curl --capath /var/run/secrets/kubernetes.io/serviceaccount/ca.crt "$URL" if [ $? -eq 0 ]; then echo Mode detected as apiServerCA. ln -s /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /hostCert/kubelet.crt