Stop waiting when a resource is Stalled or Failed
Flux resources have a Stalled status condition. We could use it to avoid waiting+timeouting in a clever way: if one of the dependencies of the resource we're waiting on is Stalled, we should exit.
For HelmRelease, there does not seem to be a Stalled condition, but we should be able to detect at least a few cases which let us know that a HelmRelease will not progress, based on status.conditions:
- when the error message mentions
install retries exhausted - when the error message mentions
values don't meet the specifications of the schema
Edited by Thomas Morin