Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: azure CA选机型开放 2c 和 4G 的机器 #3595

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -576,11 +576,9 @@ func (da *CleanNodesAction) getRelativeData() error {
func (da *CleanNodesAction) updateCleanNodesStatus() error {
// try to update Cluster & NodeGroup
for _, node := range da.cleanNodes {
node.Status = common.StatusDeleting
var err error

var (
err error
)
node.Status = common.StatusDeleting
// maybe update node timeout thus solve problem by retry
err = retry.Do(func() error {
if errLocal := da.model.UpdateNode(da.ctx, node); errLocal != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
)

// ApplyInstanceMachinesTask update desired nodes task
func ApplyInstanceMachinesTask(taskID string, stepName string) error {
func ApplyInstanceMachinesTask(taskID string, stepName string) error { // nolint
start := time.Now()

// get task and task current step
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (n *NodeManager) ListNodeInstanceType(info cloudprovider.InstanceInfo, opt
}

// filter cpu && mem
if cpu == 0 || mem == 0 || cpu < 4 || mem < 4 {
if cpu == 0 || mem == 0 || cpu < 2 || mem < 4 {
continue
}

Expand Down
Loading