diff --git a/templates/linux-mac-common.html b/templates/linux-mac-common.html index 6151cd8..290188b 100644 --- a/templates/linux-mac-common.html +++ b/templates/linux-mac-common.html @@ -68,7 +68,9 @@

Run configuration commands

kubectl config set-cluster {{ .ClusterName }} \
+  {{- if or .K8sCaPem .K8sCaURI }}
     --certificate-authority=${HOME}/.kube/certs/{{ .ClusterName}}/k8s-ca.crt \
+  {{- end }}
     --server={{ .K8sMasterURI }}