migtools / mig-controller

OpenShift Migration Controller
Apache License 2.0
22 stars 42 forks source link

Bug 2299628: Fix watch error if kubevirt is not installed. #1379

Closed awels closed 4 months ago

awels commented 4 months ago

The watch error is caused by the fact that the VirtualMachine CRD is not installed in the cluster. This is a common scenario when the kubevirt operator is not installed. This change adds a check to see if the CRD is installed before starting the watch.