forked from rook/rook
This is fixing a potential race where the context is canceled and the external cluster is trying to fetch the cluster info. If the context is canceled then the loop will be stuck forever. Now we check for the canceled context and return appropriately. Signed-off-by: Sébastien Han <seb@redhat.com>