From 7d79e439d297cbd2b811e322f7ee641943c2e9cc Mon Sep 17 00:00:00 2001 From: Dimitri Koshkin Date: Thu, 22 Sep 2022 10:27:04 -0700 Subject: [PATCH] fix: use v1beta1 version in EKS user kubeconfig --- pkg/cloud/services/eks/config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/cloud/services/eks/config.go b/pkg/cloud/services/eks/config.go index 44b7f5759d..1d692f3f12 100644 --- a/pkg/cloud/services/eks/config.go +++ b/pkg/cloud/services/eks/config.go @@ -187,7 +187,11 @@ func (s *Service) createUserKubeconfigSecret(ctx context.Context, cluster *eks.C return fmt.Errorf("creating base kubeconfig: %w", err) } - execConfig := &api.ExecConfig{APIVersion: "client.authentication.k8s.io/v1alpha1"} + // Version v1alpha1 was removed in Kubernetes v1.23. + // Version v1 was released in Kubernetes v1.23. + // Version v1beta1 was selected as it has the widest range of support + // This should be changed to v1 once EKS no longer supports Kubernetes