From 2238b5a1e0c5b97a219d1293935243f0424048f0 Mon Sep 17 00:00:00 2001 From: M00nF1sh Date: Fri, 15 Jul 2022 13:19:05 -0700 Subject: [PATCH] fix addOn version api for beta --- scripts/lib/add-on.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/add-on.sh b/scripts/lib/add-on.sh index 3f3b72bfa6..f90c35ba8e 100644 --- a/scripts/lib/add-on.sh +++ b/scripts/lib/add-on.sh @@ -4,7 +4,7 @@ function load_addon_details() { echo "loading $VPC_CNI_ADDON_NAME addon details" - DESCRIBE_ADDON_VERSIONS=$(aws eks describe-addon-versions --addon-name $VPC_CNI_ADDON_NAME --kubernetes-version "$K8S_VERSION") + DESCRIBE_ADDON_VERSIONS=$(aws eks describe-addon-versions $ENDPOINT_FLAG --addon-name $VPC_CNI_ADDON_NAME --kubernetes-version "$K8S_VERSION") LATEST_ADDON_VERSION=$(echo "$DESCRIBE_ADDON_VERSIONS" | jq '.addons[0].addonVersions[0].addonVersion' -r) DEFAULT_ADDON_VERSION=$(echo "$DESCRIBE_ADDON_VERSIONS" | jq -r '.addons[].addonVersions[] | select(.compatibilities[0].defaultVersion == true) | .addonVersion')