From bcea9d1e62290d402b9ca000e6c12d4c22b0c58d Mon Sep 17 00:00:00 2001 From: Sichaow Date: Mon, 16 Sep 2024 15:37:30 -0700 Subject: [PATCH] Unify authenticator format --- templates/al2/provisioners/install-worker.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/al2/provisioners/install-worker.sh b/templates/al2/provisioners/install-worker.sh index 127fa0919..a88147782 100644 --- a/templates/al2/provisioners/install-worker.sh +++ b/templates/al2/provisioners/install-worker.sh @@ -293,6 +293,7 @@ done # Verify that the aws-iam-authenticator is at last v0.5.9 or greater. Otherwise, nodes will be # unable to join clusters due to upgrading to client.authentication.k8s.io/v1beta1 iam_auth_version=$(sudo /usr/bin/aws-iam-authenticator version | jq -r .Version) +iam_auth_version="${iam_auth_version#*-}" if vercmp "$iam_auth_version" lt "v0.5.9"; then # To resolve this issue, you need to update the aws-iam-authenticator binary. Using binaries distributed by EKS # with kubernetes_build_date 2022-10-31 or later include v0.5.10 or greater.