@@ -407,30 +407,30 @@ func TestSyncMachineConfiguration(t *testing.T) {
407407 expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusManualWithOCPVersion ("4.18.0" ),
408408 },
409409 {
410- name : "Azure platform, no existing config, no opt-in expected" ,
410+ name : "Azure platform, no existing config, opt-in expected" ,
411411 infra : buildInfra (withPlatformType (configv1 .AzurePlatformType )),
412412 mcop : buildMachineConfigurationWithNoBootImageConfiguration (),
413413 clusterVersion : buildClusterVersion ("4.18.0" ),
414- annotationExpected : false ,
414+ annotationExpected : true ,
415415 expectedManagedBootImagesStatus : opv1.ManagedBootImages {
416416 MachineManagers : []opv1.MachineManager {
417- {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .None }},
417+ {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .All }},
418418 },
419419 },
420- expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusManualWithOCPVersion ("4.18.0" ),
420+ expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusAutomaticWithOCPVersion ("4.18.0" ),
421421 },
422422 {
423- name : "vsphere platform, no existing config, no opt-in expected" ,
423+ name : "vsphere platform, no existing config, opt-in expected" ,
424424 infra : buildInfra (withPlatformType (configv1 .VSpherePlatformType )),
425425 mcop : buildMachineConfigurationWithNoBootImageConfiguration (),
426426 clusterVersion : buildClusterVersion ("4.18.0" ),
427- annotationExpected : false ,
427+ annotationExpected : true ,
428428 expectedManagedBootImagesStatus : opv1.ManagedBootImages {
429429 MachineManagers : []opv1.MachineManager {
430- {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .None }},
430+ {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .All }},
431431 },
432432 },
433- expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusManualWithOCPVersion ("4.18.0" ),
433+ expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusAutomaticWithOCPVersion ("4.18.0" ),
434434 },
435435 {
436436 name : "bare metal platform, unsupported platform, no configuration expected" ,
@@ -488,15 +488,15 @@ func TestSyncMachineConfiguration(t *testing.T) {
488488 infra : buildInfra (withPlatformType (configv1 .AzurePlatformType )),
489489 mcop : buildMachineConfigurationWithNoBootImageConfiguration (),
490490 clusterVersion : buildClusterVersion ("4.18.0" ),
491- annotationExpected : false ,
491+ annotationExpected : true ,
492492 enableCPMSFeatureGate : true ,
493493 expectedManagedBootImagesStatus : opv1.ManagedBootImages {
494494 MachineManagers : []opv1.MachineManager {
495- {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .None }},
495+ {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .All }},
496496 {Resource : opv1 .ControlPlaneMachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .None }},
497497 },
498498 },
499- expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusManualWithOCPVersion ("4.18.0" ),
499+ expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusAutomaticWithOCPVersion ("4.18.0" ),
500500 },
501501 {
502502 name : "AWS platform, CPMS enabled in spec, MachineSets should still follow platform default (All)" ,
@@ -514,19 +514,19 @@ func TestSyncMachineConfiguration(t *testing.T) {
514514 expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusAutomaticWithOCPVersion ("4.18.0" ),
515515 },
516516 {
517- name : "Azure platform, CPMS enabled in spec, MachineSets should still follow platform default (None )" ,
517+ name : "Azure platform, CPMS enabled in spec, MachineSets should still follow platform default (All )" ,
518518 infra : buildInfra (withPlatformType (configv1 .AzurePlatformType )),
519519 mcop : buildMachineConfigurationWithCPMSEnabled (),
520520 clusterVersion : buildClusterVersion ("4.18.0" ),
521- annotationExpected : false ,
521+ annotationExpected : true ,
522522 enableCPMSFeatureGate : true ,
523523 expectedManagedBootImagesStatus : opv1.ManagedBootImages {
524524 MachineManagers : []opv1.MachineManager {
525- {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .None }},
525+ {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .All }},
526526 {Resource : opv1 .ControlPlaneMachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .All }},
527527 },
528528 },
529- expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusManualWithOCPVersion ("4.18.0" ),
529+ expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusAutomaticWithOCPVersion ("4.18.0" ),
530530 },
531531 {
532532 name : "AWS platform, MachineSets enabled in spec, CPMS should remain disabled (no opinion)" ,
@@ -618,14 +618,14 @@ func TestSyncMachineConfiguration(t *testing.T) {
618618 infra : buildInfra (withPlatformType (configv1 .VSpherePlatformType )),
619619 mcop : buildMachineConfigurationWithNoBootImageConfiguration (),
620620 clusterVersion : buildClusterVersion ("4.19.0" ),
621- annotationExpected : false ,
621+ annotationExpected : true ,
622622 enableCPMSFeatureGate : true ,
623623 expectedManagedBootImagesStatus : opv1.ManagedBootImages {
624624 MachineManagers : []opv1.MachineManager {
625- {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .None }},
625+ {Resource : opv1 .MachineSets , APIGroup : opv1 .MachineAPI , Selection : opv1.MachineManagerSelector {Mode : opv1 .All }},
626626 },
627627 },
628- expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusManualWithOCPVersion ("4.19.0" ),
628+ expectedSkewEnforcementStatus : apihelpers .GetSkewEnforcementStatusAutomaticWithOCPVersion ("4.19.0" ),
629629 },
630630 // Skew enforcement test cases
631631 {
0 commit comments