forked from ipedrazas/drone-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubeconfig
40 lines (39 loc) · 798 Bytes
/
kubeconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
apiVersion: v1
clusters:
- cluster:
{{ if eq .SkipTLSVerify true }}
insecure-skip-tls-verify: true
{{ else }}
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 }}
{{ else if .EKSCluster }}
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
command: aws-iam-authenticator
args:
- "token"
- "-i"
- "{{ .EKSCluster }}"
{{ if .EKSRoleARN }}
- "-r"
- "{{ .EKSRoleARN }}"
{{ end }}
{{ end }}