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: when application failover is enabled but propagateDeps is set to false, the failover has no effect #3739

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

chaunceyjiang
Copy link
Member

Signed-off-by: chaunceyjiang chaunceyjiang@gmail.com

What type of PR is this?

/kind bug

What this PR does / why we need it:

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

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

`karmada-webhook`: When application failover is enabled, users are prevented from setting propagateDeps to `false`.

… false, the failover has no effect.

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
@karmada-bot karmada-bot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 29, 2023
@karmada-bot karmada-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 29, 2023
@chaunceyjiang
Copy link
Member Author

Test:

image

@chaunceyjiang
Copy link
Member Author

/cc @Poor12 PTAL.

@Poor12
Copy link
Member

Poor12 commented Jun 29, 2023

/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #3739 (0b86e0d) into master (626564d) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #3739      +/-   ##
==========================================
- Coverage   55.69%   55.67%   -0.03%     
==========================================
  Files         222      222              
  Lines       21195    21198       +3     
==========================================
- Hits        11804    11801       -3     
- Misses       8764     8769       +5     
- Partials      627      628       +1     
Flag Coverage Δ
unittests 55.67% <0.00%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
pkg/util/validation/validation.go 82.68% <0.00%> (-1.41%) ⬇️

... and 2 files with indirect coverage changes

Copy link
Contributor

@liangyuanpeng liangyuanpeng left a comment

Choose a reason for hiding this comment

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

LGTM, it's uesful, i have cost some time in this point.

@chaunceyjiang
Copy link
Member Author

/cc @RainbowMango PTAL.

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.

/approve
Thanks.
@Poor12 Can you please double-check if the current validation is enough?

@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liangyuanpeng, 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 Jun 30, 2023
@karmada-bot karmada-bot merged commit de09d89 into karmada-io:master Jun 30, 2023
@RainbowMango
Copy link
Member

I guess release-1.6 also needs this patch, right?

@RainbowMango RainbowMango mentioned this pull request Jul 3, 2023
3 tasks
@RainbowMango
Copy link
Member

Just opened an issue to track the cherry-pick thing #3744.

@Poor12
Copy link
Member

Poor12 commented Jul 3, 2023

/approve Thanks. @Poor12 Can you please double-check if the current validation is enough?

Although it is not a hot bug, I think it deserves a cherry-pick.

karmada-bot added a commit that referenced this pull request Jul 5, 2023
…pstream-release-1.6

Automated cherry pick of #3739: fix: when application failover is enabled but propagateDeps
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. 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.

When application failover is enabled but propagateDeps is set to false, the failover has no effect.
6 participants