Skip to content

Commit

Permalink
updated aws_eks_addon_versions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Dec 31, 2024
1 parent dc4a7f7 commit b3b177e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aws/aws_eks_addon_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ if is_blank "$cluster"; then
)"
num_eks_clusters="$(grep -c . <<< "$eks_clusters")"
if [ "$num_eks_clusters" = 1 ]; then
EKS_CLUSTER="$eks_clusters"
timestamp "No cluster specified but only one found in this account, using that: $EKS_CLUSTER"
cluster="$eks_clusters"
timestamp "No cluster specified but only one found in this account, using that: $cluster"
else
usage "Need to define cluster name"
fi
fi

timestamp "Getting cluster version for: $cluster"
cluster_version="$(aws eks describe-cluster --name "$EKS_CLUSTER" --query "cluster.version" --output text)"
cluster_version="$(aws eks describe-cluster --name "$cluster" --query "cluster.version" --output text)"
timestamp "Cluster version: $cluster_version"

aws eks describe-addon-versions \
Expand Down

0 comments on commit b3b177e

Please sign in to comment.