2019-12-12 18:20:11 +00:00
|
|
|
apiVersion: v1
|
|
|
|
clusters:
|
|
|
|
- cluster:
|
|
|
|
{{- if eq .SkipTLSVerify true }}
|
|
|
|
insecure-skip-tls-verify: true
|
2019-12-21 00:14:17 +00:00
|
|
|
{{- else if .Certificate }}
|
2019-12-12 18:20:11 +00:00
|
|
|
certificate-authority-data: {{ .Certificate }}
|
|
|
|
{{- end}}
|
|
|
|
server: {{ .APIServer }}
|
|
|
|
name: helm
|
|
|
|
contexts:
|
|
|
|
- context:
|
|
|
|
cluster: helm
|
|
|
|
{{- if .Namespace }}
|
|
|
|
namespace: {{ .Namespace }}
|
|
|
|
{{- end }}
|
|
|
|
user: {{ .ServiceAccount }}
|
|
|
|
name: helm
|
|
|
|
current-context: "helm"
|
|
|
|
kind: Config
|
|
|
|
preferences: {}
|
|
|
|
users:
|
|
|
|
- name: {{ .ServiceAccount }}
|
|
|
|
user:
|
|
|
|
{{- if .Token }}
|
|
|
|
token: {{ .Token }}
|
|
|
|
{{- end }}
|