Use scale client to Patch the scale subresource when setting the size for a scalableResource #2941
Labels
area/cluster-autoscaler
area/provider/cluster-api
Issues or PRs related to Cluster API provider
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
The capi provider autoscaler mutates scalable resources i.e machineSets by using Update() to change the replica number and add annotations to machines. We should instead rely on the scale subresource and making Patch() requests. This is more idiomatic and reduce the surface impacted by Update() calls and its possible side effects
autoscaler/cluster-autoscaler/cloudprovider/clusterapi/clusterapi_machineset.go
Line 83 in 150bf34
/area provider/cluster-api
The text was updated successfully, but these errors were encountered: