Omit empty CA data from the kubeconfig [#29]
This commit is contained in:
parent
dc4ecb6b91
commit
044caebafd
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue