AI-Hypercomputer / xpk

xpk (Accelerated Processing Kit, pronounced x-p-k,) is a software tool to help Cloud developers to orchestrate training jobs on accelerators such as TPUs and GPUs on GKE.
Apache License 2.0
70 stars 18 forks source link

Update the CloudDNS check. #194

Closed lukebaumann closed 1 day ago

lukebaumann commented 1 day ago

If there is an upgrad available for the cluster, additional text is printed to stderr

* - There is an upgrade available for your cluster(s).

To upgrade nodes to the latest available version, run
  $ gcloud container clusters upgrade <cluster>

That text is captured by run_command_for_value and a ValueError is returned when trying to convert it to an integer.

The fix is to inspect the return_code of grep instead of the text output of wc -l.

Fixes / Features

-

Testing / Documentation

Testing details.