Skip to content

Commit

Permalink
fix: k8s CA CERT invalid w/ bash
Browse files Browse the repository at this point in the history
The line breaks were being stripped from multiline CA CERT variable.
  • Loading branch information
sl1pm4t committed Jun 3, 2024
1 parent 7a42c3c commit 6e5244c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/linux-mac-common.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2>Add / Update kubeconfig context</h2>

{{ 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 }}</code></pre>
Expand Down

0 comments on commit 6e5244c

Please sign in to comment.