You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
newMS: createMS("ms2", "v2", 1, withStatusReplicas(1), withStatusAvailableReplicas(0)), // one machine created on the new NewMS due to maxSurge, but it is not reaching the available state,
471
471
oldMSs: []*clusterv1.MachineSet{
472
-
createMS("ms1", "v1", 2, withStatusReplicas(3), withStatusAvailableReplicas(0)),// OldMS has unavailable replicas
// 3 available replicas from ms1 - 1 replica already scaling down from ms1 + 3 available replica from ms2 = 5 available replicas == minAvailability, we cannot further scale down
475
+
// no new scale down intent for oldMSs (ms1): unavailability on new MS
477
476
},
478
477
expectedNotes: map[string][]string{},
479
478
skipMaxUnavailabilityCheck: true, // The test case is simulating all machines not unavailable, so this check will fail
createMS("ms1", "v1", 2, withStatusReplicas(2), withStatusAvailableReplicas(0)), // OldMS scaled down due to maxUnavailable 1
488
487
},
489
488
expectScaleIntent: map[string]int32{
490
-
// no new scale down intent for oldMSs (ms1):
491
-
// 3 available replicas from ms1 - 1 replica already scaling down from ms1 + 3 available replica from ms2 = 5 available replicas == minAvailability, we cannot further scale down
489
+
// no new scale down intent for oldMSs (ms1): unavailability on new MS
492
490
},
493
491
expectedNotes: map[string][]string{},
494
492
skipMaxUnavailabilityCheck: true, // The test case is simulating all machines not unavailable, so this check will fail
0 commit comments