[OCM] Replace sleep with proper crd watch
josecastillolema opened this issue · comments
[enhancement]
The watch_managedcluster_status
function (https://github.com/redhat-chaos/krkn/blob/main/kraken/kubernetes/client.py#L864-L885) should be rewritten using watch streams (i.e.: https://github.com/redhat-chaos/krkn/blob/main/kraken/kubernetes/client.py#L838-L861) instead of the sleep approach.
Reference: https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/CustomObjectsApi.md