-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 check resource blocking clusterctl move during discovery #9246
🌱 check resource blocking clusterctl move during discovery #9246
Conversation
d69fa38
to
fc75cf4
Compare
Nice! let wait for some other clusterctl reviewer to take a look first, but overall lgtm for me |
@@ -623,6 +623,10 @@ func waitReadyForMove(ctx context.Context, proxy Proxy, nodes []*node, dryRun bo | |||
} | |||
|
|||
for _, n := range nodes { | |||
if !n.blockingMove { | |||
continue |
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.
Might be helpful to have a trace level log line here, buts thats a nit.
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
LGTM label has been added. Git tree hash: a3c25c1d11c810e8448c7161ffc9e3d6e18eacf4
|
2716427
to
e3c78b7
Compare
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
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR adds a check to the discovery phase of
clusterctl move
to collect whether the resource is blocking the move with theclusterctl.cluster.x-k8s.io/block-move
annotation. This eliminates one extraneous API call during the actual move operation for all resources which already do not have the annotation.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #9196
/area clusterctl