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 bug for delete lv when node is not ready #144

Merged
merged 2 commits into from Sep 16, 2022

Conversation

zhangkai8048
Copy link
Contributor

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #128

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

skip rebuid lv when pod.annotation has none or not need to rebuid

@carina-ci-bot carina-ci-bot added size/M approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 15, 2022
@antmoveh
Copy link
Contributor

/ok-to-test

@carina-ci-bot carina-ci-bot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. # This is the opposite of label Sep 16, 2022
@antmoveh
Copy link
Contributor

/assign @fanhaouu

@@ -191,6 +192,12 @@ func (r *NodeReconciler) getNeedRebuildVolume(ctx context.Context) (map[string]c
continue
}

log.Infof("checkouk lv: %s", lv.Name)
if isSkip, err := r.skipLv(ctx, lv); isSkip || err != nil {
log.Errorf("skip lv Whether the pod.annotation meets the condition in not ready node:%s err:%s", lv.Spec.NodeName, err.Error())
Copy link
Member

Choose a reason for hiding this comment

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

there is a extra space after the condition word

Copy link
Contributor

@antmoveh antmoveh Sep 16, 2022

Choose a reason for hiding this comment

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

@zhangkai8048 Is the checkout word wrong ?

@fanhaouu
Copy link
Member

/lgtm
/approve

@carina-ci-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fanhaouu, zhangkai8048

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:
  • OWNERS [fanhaouu,zhangkai8048]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@carina-ci-bot carina-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2022
@carina-ci-bot carina-ci-bot merged commit e032059 into carina-io:main Sep 16, 2022
@zhangkai8048 zhangkai8048 deleted the fix-debug branch February 2, 2023 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. # This is the opposite of size/M
Projects
None yet
4 participants