Omit empty CA data from the kubeconfig [#29]

This commit is contained in:
Erin Call 2019-12-20 16:14:17 -08:00
parent dc4ecb6b91
commit 044caebafd
No known key found for this signature in database
GPG key ID: 4071FF6C15B8DAD1

View file

@ -3,7 +3,7 @@ clusters:
- cluster: - cluster:
{{- if eq .SkipTLSVerify true }} {{- if eq .SkipTLSVerify true }}
insecure-skip-tls-verify: true insecure-skip-tls-verify: true
{{- else }} {{- else if .Certificate }}
certificate-authority-data: {{ .Certificate }} certificate-authority-data: {{ .Certificate }}
{{- end}} {{- end}}
server: {{ .APIServer }} server: {{ .APIServer }}