Stop waiting when a resource is failed
This MR adds the --exit-condition arg which can take either a reason or message passed and exit when the conditions are met.
This can be ran using something like sylvactl watch --exit-condition reason=InstallFailed or a combination of both message and reason passed : sylvactl watch --exit-condition reason=InstallFailed --exit-condition message="Some error message" .
We can specify multiple exit conditions by repeating the --exit-condition flag alongside with either reason or message for the fail.
If --exit-condition is not passed, it will default to the following messages: values don't meet the specifications of the schema, install retries exhausted.
Edited by Mihai Zaharia