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

Skip unreachable node during collecting NodeBundles #27

Merged
merged 1 commit into from
Nov 24, 2021
Merged

Skip unreachable node during collecting NodeBundles #27

merged 1 commit into from
Nov 24, 2021

Conversation

weihanglo
Copy link
Contributor

@weihanglo weihanglo commented Nov 24, 2021

We currently skip nodes with unavailable network and not ready kubelet.
Nodes tainted with node.kubernetes.io/unschedulable:NoSchedule are tolerated.

Related issue: harvester/harvester#1524

Any improvement is welcome.

@weihanglo
Copy link
Contributor Author

cc @guangbochen @bk201

pkg/manager/manager.go Outdated Show resolved Hide resolved
Copy link
Contributor

@guangbochen guangbochen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

switch cond.Type {
case v1.NodeReady:
if cond.Status != v1.ConditionTrue {
break NODE_LOOP
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe continue?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be continue :P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad 🤯 🙇🏾‍♂️
Fixed!

We currently skip nodes with unavailable network and not ready kubelet.
Nodes tainted with `node.kubernetes.io/unschedulable:NoSchedule` are tolerated.

Signed-off-by: Weihang Lo <[email protected]>
Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bk201 bk201 merged commit 7899273 into rancher:master Nov 24, 2021
@weihanglo weihanglo deleted the skip-unreachable-node branch November 29, 2021 08:06
@weihanglo
Copy link
Contributor Author

Can we tag a new release for this fix? Thanks

@bk201
Copy link
Member

bk201 commented Nov 29, 2021

Sure v0.0.4
https://drone-publish.rancher.io/rancher/support-bundle-kit/32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants