Skip to content

Commit

Permalink
Merge pull request #88 from nrobert13/fix_template_public_ca
Browse files Browse the repository at this point in the history
only add --certificate-authority if either k8s_ca_uri or k8s_ca_pem is provided
  • Loading branch information
nabadger authored Mar 10, 2019
2 parents d9b7934 + be16853 commit 641bcde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/linux-mac-common.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ <h3>Run configuration commands</h3>
<img class="clippy" width="13" src="{{ .Web_Path_Prefix }}static/clippy.svg" alt="">
</button>
<pre><code>kubectl config set-cluster {{ .ClusterName }} \
{{- if or .K8sCaPem .K8sCaURI }}
--certificate-authority=${HOME}/.kube/certs/{{ .ClusterName}}/k8s-ca.crt \
{{- end }}
--server={{ .K8sMasterURI }}</code></pre>
</div>

Expand Down

0 comments on commit 641bcde

Please sign in to comment.