Skip to content

Commit

Permalink
merge(#3634): revert EKS aws-iam-authn fix
Browse files Browse the repository at this point in the history
Revert "fix(EKS,Authn): fixed aws-iam-authn apiversion"
  • Loading branch information
pregnor authored Sep 1, 2022
2 parents 46419c1 + 79fdc37 commit 96da08b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func generateK8sConfig(clusterName string, apiEndpoint string, certificateAuthor
Name: "eks",
AuthInfo: clientcmdapi.AuthInfo{
Exec: &clientcmdapi.ExecConfig{
APIVersion: "client.authentication.k8s.io/v1beta1",
APIVersion: "client.authentication.k8s.io/v1alpha1",
Command: "aws-iam-authenticator",
Args: []string{"token", "-i", clusterName},
Env: []clientcmdapi.ExecEnvVar{
Expand Down
2 changes: 1 addition & 1 deletion src/cluster/eks.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ func (c *EKSCluster) GetK8sUserConfig() ([]byte, error) {
k8sutil.CreateAuthInfoFunc(func(clusterName string) *clientcmdapi.AuthInfo {
return &clientcmdapi.AuthInfo{
Exec: &clientcmdapi.ExecConfig{
APIVersion: parsedAdminConfig.AuthInfos["eks"].Exec.APIVersion,
APIVersion: "client.authentication.k8s.io/v1alpha1",
Command: "aws-iam-authenticator",
Args: []string{"token", "-i", clusterName},
},
Expand Down

0 comments on commit 96da08b

Please sign in to comment.