Skip to content

Commit

Permalink
fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Nov 22, 2024
1 parent d1e647d commit a15d2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e/scripts/cluster-args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cd $(dirname $0)/../../../..
case "${KUBERNETES_DISTRIBUTION_TYPE}" in
"k3s")
cluster_args=""
kubernetes_version=$(kubectl version --short | grep "Server Version" | cut -d ' ' -f3)
kubernetes_version=$(kubectl version | grep "Server Version" | cut -d ' ' -f3)
case "${kubernetes_version}" in
v1.23.*)
embedded_helm_controller_fixed_version="v1.23.14"
Expand All @@ -36,7 +36,7 @@ case "${KUBERNETES_DISTRIBUTION_TYPE}" in
;;
"rke2")
cluster_args=""
kubernetes_version=$(kubectl version --short | grep "Server Version" | cut -d ' ' -f3)
kubernetes_version=$(kubectl version | grep "Server Version" | cut -d ' ' -f3)
case "${kubernetes_version}" in
v1.23.*)
embedded_helm_controller_fixed_version="v1.23.14"
Expand Down

0 comments on commit a15d2ca

Please sign in to comment.