kr8s-org / kr8s

A batteries-included Python client library for Kubernetes that feels familiar for folks who already know how to use kubectl
https://kr8s.org
BSD 3-Clause "New" or "Revised" License
799 stars 43 forks source link

Add retry to kubectl-ng publishing #465

Closed jacobtomlinson closed 1 month ago

jacobtomlinson commented 1 month ago

For the last few releases the kubectl-ng release has failed because it depends on the verison of kr8s that was pushed immediatly before it. It takes some time for the new version to be available on PyPI and this race condition is causing releases to fail.

This PR adds some retry logic so that if kr8s isn't available yet it waits 15 seconds and tries again. I also added a 30 minute workflow timeout so that if something goes wrong it doesn't retry for too long.