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

Rework "bugfix: resource binding not created occasionally" #1368

Merged
merged 2 commits into from
Feb 19, 2022

Conversation

dddddai
Copy link
Member

@dddddai dddddai commented Feb 16, 2022

What type of PR is this?
/kind bug

What this PR does / why we need it:
The workaround in #1199 does not work with multiple workers, so this pr does 2 things

  1. Revert bugfix: resource binding is not created when creating resources and propagation policies at the same time #1199
  2. If the matched policy is not found, retry once to avoid the bug

Which issue(s) this PR fixes:
Fixes #1195

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

This reverts commit c770cc1.

Signed-off-by: dddddai <dddwq@foxmail.com>
@karmada-bot karmada-bot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. labels Feb 16, 2022
@karmada-bot karmada-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 16, 2022
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

Generally looks good to me.

@pigletfly Could you please take a look? We can take this as a quick fix solution and won't conflict with your proposal.

@@ -714,6 +721,14 @@ func (d *ResourceDetector) BuildClusterResourceBinding(object *unstructured.Unst
return binding, nil
}

// AddWaiting adds object's key to waiting list.
Copy link
Member

Choose a reason for hiding this comment

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

The comment is not correct.

Signed-off-by: dddddai <dddwq@foxmail.com>
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 19, 2022
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 19, 2022
@karmada-bot karmada-bot merged commit 1860fb2 into karmada-io:master Feb 19, 2022
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

@dddddai Would like to cherry-pick the second PR to branch release-1.0?

karmada-bot added a commit that referenced this pull request Feb 21, 2022
cherry-pick #1368: "bugfix: resource binding not created occasionally"
@dddddai dddddai deleted the detector branch March 1, 2022 00:55
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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resourcebinding NotFound.
3 participants