tests: fix kubevirt default configuration initialization
Initialize the KubeVirtDefaultConfig to original KV cluster
configuration. The issue was that KubeVirtDefaultConfig wasn't
initialized in case the tests were run w/o the --appply-default-configuration
flag
@@ -738,9 +738,10 @@ func AdjustKubeVirtResource() {
PanicOnError(err)
kv := GetCurrentKv(virtClient)
-
originalKV = kv.DeepCopy()
+ KubeVirtDefaultConfig = originalKV.Spec.Configuration
+
if !flags.ApplyDefaulte2eConfiguration {
return
}
