diff --git a/internal/cluster/distribution/eks/eksprovider/workflow/amazon.go b/internal/cluster/distribution/eks/eksprovider/workflow/amazon.go index cbfa0b7d5..d0319d609 100644 --- a/internal/cluster/distribution/eks/eksprovider/workflow/amazon.go +++ b/internal/cluster/distribution/eks/eksprovider/workflow/amazon.go @@ -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{ diff --git a/src/cluster/eks.go b/src/cluster/eks.go index fada33094..237624479 100644 --- a/src/cluster/eks.go +++ b/src/cluster/eks.go @@ -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}, },