woodpecker-helm3/assets/kubeconfig.tpl
Erin Call 12c8e08d6f
Mention that EKS isn't currently supported [#5]
We'd like to support it eventually, but the current state of affairs
doesn't justify the effort.

Also removed some vestigial code that was copy-pasta from the kubeconfig
in drone-helm.
2019-12-27 10:49:22 -08:00

28 lines
533 B
Smarty

apiVersion: v1
clusters:
- cluster:
{{- if eq .SkipTLSVerify true }}
insecure-skip-tls-verify: true
{{- else if .Certificate }}
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 }}