From 79fdc37ce7bf68a0beefd14369cd856a5fa75970 Mon Sep 17 00:00:00 2001 From: Patrik Egyed <8093632+pregnor@users.noreply.github.com> Date: Thu, 1 Sep 2022 09:36:48 +0200 Subject: [PATCH] Revert "fix(EKS,Authn): fixed aws-iam-authn apiversion" --- .../cluster/distribution/eks/eksprovider/workflow/amazon.go | 2 +- src/cluster/eks.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cluster/distribution/eks/eksprovider/workflow/amazon.go b/internal/cluster/distribution/eks/eksprovider/workflow/amazon.go index cbfa0b7d51..d0319d6094 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 fada330945..237624479c 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}, },