-
Notifications
You must be signed in to change notification settings - Fork 336
fix(platform): delete machine failed & move machine operation to provider #1435
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
Conversation
|
We decide to move After modified codes by design, we meet a new question:
After I delete this judgment, we will meet a new error: So we need some discussion next weekdays. |
b0d7c0d to
66ec962
Compare
|
LGTM |
pavlelee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| log.FromContext(ctx).Infof("delete machine %s failed.", machine.Name) | ||
| return err | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if machine not found, should return nil to break
| if !errors.IsNotFound(err) { | ||
| return err | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if node not found, should return nil to break

What type of PR is this?
What this PR does / why we need it:
Fix tke can't delete machine when delete its cluster.
Which issue(s) this PR fixes:
Fixes #1351