kubev2v / forklift

Apache License 2.0
31 stars 34 forks source link

Check if Kubevirt is installed in OpenShift providers #85

Open ghost opened 3 years ago

ghost commented 3 years ago

When an OpenShift Virtualization provider is added, we're actually connecting to the OpenShift Cluster API that happens to be extended by Kubevirt CRDs. If Kubevirt is not installed in the provider, the inventory fails to collect the Kubevirt assets and stays in Pending state. It would be better to check if the Kubevirt APIs are present and, if they are not, to reflect it in a critical condition.

fbladilo commented 2 years ago

@ghost Forklift operator already checks for KubeVirt group API and will not create the host provider if it is not present

ahadas commented 1 year ago

Makes sense, we can do the same check for remote OCP clusters in a validation webhook