From 6e5244cea1b1de4d2e45416bcb0d2858e5501a9e Mon Sep 17 00:00:00 2001 From: Matt Morrison Date: Tue, 4 Jun 2024 10:34:05 +1200 Subject: [PATCH] fix: k8s CA CERT invalid w/ bash The line breaks were being stripped from multiline CA CERT variable. --- templates/linux-mac-common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/linux-mac-common.html b/templates/linux-mac-common.html index 13a2cac..d0760a9 100644 --- a/templates/linux-mac-common.html +++ b/templates/linux-mac-common.html @@ -48,7 +48,7 @@

Add / Update kubeconfig context

{{ end }} kubectl config set-cluster {{ .ClusterName }} \ {{- if .K8sCaPem }} - --certificate-authority <(echo -n $K8S_CA_CERT) \ + --certificate-authority <(echo -n "$K8S_CA_CERT") \ --embed-certs=true \ {{- end }} --server={{ .K8sMasterURI }}