Skip to content

Commit a40b454

Browse files
committed
Fix exec config
1 parent 8711ff5 commit a40b454

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/eks/exec_config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ const (
1414

1515
func NewExecConfig(cfg *config.Config, clusterName, role string) *api.ExecConfig {
1616
execConfig := &api.ExecConfig{
17-
APIVersion: apiVersion,
18-
Command: "aws",
19-
Args: []string{"--region", cfg.Region, "eks", "get-token", "--cluster-name", clusterName},
17+
APIVersion: apiVersion,
18+
Command: "gotoaws",
19+
Args: []string{"--region", cfg.Region, "--silent", "eks", "get-token", "--cluster", clusterName},
20+
InteractiveMode: api.NeverExecInteractiveMode,
2021
}
2122

2223
if role != "" {

0 commit comments

Comments
 (0)