From 6f7479a63fe1d412a6fbad5986db4ce641df7970 Mon Sep 17 00:00:00 2001 From: Bill Havanki Date: Mon, 14 Nov 2022 17:04:31 -0500 Subject: [PATCH] fix: Use API version client.authentication.k8s.io/v1beta1 Generated kubeconfig files now use API version v1beta1 for acquiring credentials via aws-iam-authenticator. This allows communication with clusters running newer versions of Kubernetes which no longer support v1alpha1 (while at the same time eliminating support for clusters running very old versions). --- pkg/cluster/kube/kubeconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cluster/kube/kubeconfig.go b/pkg/cluster/kube/kubeconfig.go index 512db7e..d0be3a0 100644 --- a/pkg/cluster/kube/kubeconfig.go +++ b/pkg/cluster/kube/kubeconfig.go @@ -33,7 +33,7 @@ users: - name: {{ .Name }} user: exec: - apiVersion: client.authentication.k8s.io/v1alpha1 + apiVersion: client.authentication.k8s.io/v1beta1 args: - token - --region