What would you like to be added:
N/A
Why is this needed:
N/A
Because the repository does not have an issue with the question type, I will ask my question here.
We have this method in Refresh in mcmManager
|
func (m *McmManager) Refresh() error { |
which goes through all NodeGroups (aka MachineDeployment) gets all nodes from the annotations for deletion and cordons these nodes.
|
err = ngImpl.mcmManager.cordonNodes(toBeDeletedNodeNames) |
At the same time, the autoscaler itself cordons nodes here as well
|
return AddTaints(node, client, []apiv1.Taint{taint}, cordonNode) |
https://github.com/gardener/autoscaler/blob/machine-controller-manager-provider/cluster-autoscaler/core/scaledown/actuation/actuator.go#L382
https://github.com/gardener/autoscaler/blob/machine-controller-manager-provider/cluster-autoscaler/core/scaledown/actuation/actuator.go#L212
https://github.com/gardener/autoscaler/blob/machine-controller-manager-provider/cluster-autoscaler/core/scaledown/actuation/actuator.go#L123
What would you like to be added:
N/A
Why is this needed:
N/A
Because the repository does not have an issue with the question type, I will ask my question here.
We have this method in Refresh in mcmManager
autoscaler/cluster-autoscaler/cloudprovider/mcm/mcm_manager.go
Line 442 in 36b3488
which goes through all NodeGroups (aka MachineDeployment) gets all nodes from the annotations for deletion and cordons these nodes.
autoscaler/cluster-autoscaler/cloudprovider/mcm/mcm_cloud_provider.go
Line 358 in 36b3488
autoscaler/cluster-autoscaler/utils/taints/taints.go
Line 169 in 36b3488
https://github.com/gardener/autoscaler/blob/machine-controller-manager-provider/cluster-autoscaler/core/scaledown/actuation/actuator.go#L382
https://github.com/gardener/autoscaler/blob/machine-controller-manager-provider/cluster-autoscaler/core/scaledown/actuation/actuator.go#L212
https://github.com/gardener/autoscaler/blob/machine-controller-manager-provider/cluster-autoscaler/core/scaledown/actuation/actuator.go#L123