Skip to content

Commit ad35a1e

Browse files
authored
chmod kubeconfig to 600 to avoid warning messages (#10)
1 parent da0bf9a commit ad35a1e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

modules/kubeconfig/kubeconfig.variant

+29
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,35 @@ job "aws eks kubeconfig" {
1313
description = "Region"
1414
}
1515

16+
step "aws eks kubeconfig write" {
17+
run "aws eks kubeconfig write" {
18+
stack = opt.stack
19+
region = opt.region
20+
}
21+
}
22+
step "aws eks kubeconfig chmod" {
23+
run "shell" {
24+
command = "chmod"
25+
args = ["600", "${opt.kubeconfig-path}/${opt.stack}-kubecfg"]
26+
}
27+
}
28+
}
29+
30+
job "aws eks kubeconfig write" {
31+
description = "Download the kubeconfig from the cluster and save it in 'kubeconfig-path'"
32+
private = true
33+
34+
option "stack" {
35+
type = string
36+
description = "Stack"
37+
short = "s"
38+
}
39+
40+
option "region" {
41+
type = string
42+
description = "Region"
43+
}
44+
1645
variable "cmd-name" {
1746
value = "aws"
1847
type = string

0 commit comments

Comments
 (0)