docs: Automated CherryPick Update for release-v4.3 #3732
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤖 Generated by Copilot at 9dbed1a
Summary
🔧🚀🧹
Refactored the
pkg/runtime
package and updated thepkg/apply
package and thepkg/client-go/kubernetes
package to use the new and renamed methods from thepkg/runtime
package. The refactoring aims to simplify and consolidate the logic for scaling and upgrading the cluster.Walkthrough
GetKubeadmConfig
toGetConfig
andUpgradeCluster
toUpgrade
(link, link, link, link, link)ScaleUp
andScaleDown
, replacing the oldJoinMasters
,JoinNodes
,DeleteMasters
, andDeleteNodes
methods (link, link, link, link, link)NewClusterFromGenArgs
function inpkg/apply/gen.go
to use the newGetConfig
method (link)Join
function inpkg/apply/processor/create.go
to use the newScaleUp
method (link)UpgradeIfNeed
function inpkg/apply/processor/install.go
to use the newUpgrade
method (link)Delete
andJoin
functions inpkg/apply/processor/scale.go
to use the newScaleDown
andScaleUp
methods (link, link)TestGetKubeadmConfig
function inpkg/client-go/kubernetes/expansion_test.go
to use the newGetConfig
method (link)Automated changes by create-pull-request GitHub action