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
[GEP-31] Controller changes to Support Manual InPlaceUpdate strategy (#987)
* Manual Inplace
Co-Authored-By: Shafeeque E S <shafeeque.e.s@sap.com>
Co-Authored-By: Sonu Kumar Singh <28653770+acumino@users.noreply.github.com>
* Minor Nit
Co-Authored-By: Shafeeque E S <shafeeque.e.s@sap.com>
Co-Authored-By: Sonu Kumar Singh <28653770+acumino@users.noreply.github.com>
* Address Review
* Address Review
* Get MCD for machines without passing context
* Add predicate to reconcile MCD when machine update is successful
* Enhance few logs
* Change is to machineSet
---------
Co-authored-by: Shafeeque E S <shafeeque.e.s@sap.com>
Co-authored-by: Sonu Kumar Singh <28653770+acumino@users.noreply.github.com>
Co-authored-by: Sonu Kumar Singh <sksgkpvks@gmail.com>
klog.V(3).Infof("Found %d machine(s) with label %q=%q in new machine set", len(machinesWithUpdateSuccessfulLabel), v1alpha1.LabelKeyNodeUpdateResult, v1alpha1.LabelValueNodeUpdateSuccessful)
134
+
klog.V(3).Infof("Found %d machine(s) with label %q=%q in new machine set %q", len(machinesWithUpdateSuccessfulLabel), v1alpha1.LabelKeyNodeUpdateResult, v1alpha1.LabelValueNodeUpdateSuccessful, newMachineSet.Name)
klog.V(3).Infof("scale up the new machine set %s by %d to %d replicas", newMachineSet.Name, scaleUpBy, newMachineSet.Spec.Replicas+int32(scaleUpBy)) // #nosec G115 (CWE-190) -- value already validated
klog.V(3).Infof("scale up the new machine set %s by %d", newMachineSet.Name, addedNewReplicasCount)
251
+
klog.V(3).Infof("scale up the new machine set %s by %d to %d replicas", newMachineSet.Name, addedNewReplicasCount, newMachineSet.Spec.Replicas+addedNewReplicasCount)
// maxUpdatePossible is calculated as the total number of machines (allMachinesCount)
290
303
// minus the minimum number of machines that must remain available (minAvailable),
291
-
// minus the number of machines in the new instance set that are currently unavailable (newISUnavailableMachineCount),
292
-
// minus the number of machines in the old instance sets that are undergoing updates (oldISsMachinesUndergoingUpdate).
304
+
// minus the number of machines in the new instance set that are currently unavailable (newMachineSetUnavailableMachineCount),
305
+
// minus the number of machines in the old instance sets that are undergoing updates (oldMachineSetsMachinesUndergoingUpdate).
293
306
// here unavailable machines of old machine sets are not considered as first we want to check if we can select machines for update from old machine sets
klog.V(3).Infof("%d machine(s) transferred to new machine set. scaling down machine set %s", transferredMachineCount, oldMachineSet.Name)
395
+
klog.V(3).Infof("%d machine(s) transferred to new machine set. scaling down machine set %s to %d replicas", transferredMachineCount, oldMachineSet.Name, oldMachineSet.Spec.Replicas-transferredMachineCount)
0 commit comments