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

Don't send an event when the object not matched any propagation policy #4052

Merged

Conversation

wu0407
Copy link
Contributor

@wu0407 wu0407 commented Sep 12, 2023

What type of PR is this?

/kind flake

What this PR does / why we need it:
remove the ApplyPolicyFailed event for objects not match any policy and add a log for debugging purposes.

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

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

`karmada-controller-manager`: Skip emitting the `ApplyPolicyFailed` event for the resource template which does not match any PropagationPolicy.

@karmada-bot karmada-bot added kind/flake Categorizes issue or PR as related to a flaky test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 12, 2023
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.

/assign

@codecov-commenter
Copy link

Codecov Report

Patch and project coverage have no change.

Comparison is base (b379023) 53.81% compared to head (2879c8d) 53.81%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4052   +/-   ##
=======================================
  Coverage   53.81%   53.81%           
=======================================
  Files         231      231           
  Lines       23013    23013           
=======================================
+ Hits        12384    12385    +1     
+ Misses       9956     9955    -1     
  Partials      673      673           
Flag Coverage Δ
unittests 53.81% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
pkg/detector/policy.go 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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 Sep 12, 2023
@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 Sep 12, 2023
@RainbowMango
Copy link
Member

/remove-kind flake
/kind cleanup

@karmada-bot karmada-bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed kind/flake Categorizes issue or PR as related to a flaky test. labels Sep 12, 2023
@karmada-bot karmada-bot merged commit 244c73c into karmada-io:master Sep 12, 2023
11 checks passed
@RainbowMango RainbowMango added this to the v1.8 milestone Sep 12, 2023
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/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A confusing event "No policy match for resource"
4 participants