Skip to content

Commit

Permalink
add cluster version check
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <[email protected]>
  • Loading branch information
NikitaSkrynnik committed Aug 8, 2024
1 parent 5352a95 commit 895798e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
| jq '.channels[] | select (.channel=="REGULAR") | .validVersions[]' \
| grep -m 1 "$K8S_VERSION" | tr -d '"')
if [ -z "$GKE_CLUSTER_VERSION"]; then
echo "GKE cluster version is not valid"
exit 1
fi
gcloud components install gke-gcloud-auth-plugin
gcloud components update
Expand Down

0 comments on commit 895798e

Please sign in to comment.