Validate objects observe the latest api version after update
@@ -40,6 +40,7 @@ import (
v1 "kubevirt.io/client-go/api/v1"
"kubevirt.io/client-go/kubecli"
+ "kubevirt.io/kubevirt/pkg/controller"
"kubevirt.io/kubevirt/tests"
)
@@ -635,6 +636,10 @@ spec:
return false
}
+ if !controller.ObservedLatestApiVersionAnnotation(virtualMachine) {
+ return false
+ }
+
return true
}, 90*time.Second, 1*time.Second).Should(BeTrue())
