karmada icon indicating copy to clipboard operation
karmada copied to clipboard

Handle preserveResourceOnDeletion with dependencise distributor

Open XiShanYongYe-Chang opened this issue 1 year ago • 4 comments

What type of PR is this?

/kind feature

What this PR does / why we need it:

When users enable dependency distribution for a resource template, if the dependency distributed resources do not have their own propagation policy, they will inherit the PreserveResourcesOnDeletion policy from the resource they are following.

Which issue(s) this PR fixes: Part of #5577

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

`karmada-controller-manager`: handle preserveResourceOnDeletion with dependencise distributor

XiShanYongYe-Chang avatar Oct 22 '24 02:10 XiShanYongYe-Chang

/cc @CharlesQQ @RainbowMango

XiShanYongYe-Chang avatar Oct 22 '24 02:10 XiShanYongYe-Chang

@XiShanYongYe-Chang: GitHub didn't allow me to request PR reviews from the following users: CharlesQQ.

Note that only karmada-io members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @CharlesQQ @RainbowMango

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

karmada-bot avatar Oct 22 '24 02:10 karmada-bot

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 40.53%. Comparing base (13df63f) to head (f63c134).

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5717   +/-   ##
=======================================
  Coverage   40.52%   40.53%           
=======================================
  Files         650      650           
  Lines       55184    55187    +3     
=======================================
+ Hits        22365    22369    +4     
+ Misses      31386    31385    -1     
  Partials     1433     1433           
Flag Coverage Δ
unittests 40.53% <100.00%> (+<0.01%) :arrow_up:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Oct 22 '24 03:10 codecov-commenter

/lgtm

cc @RainbowMango

chaosi-zju avatar Oct 24 '24 03:10 chaosi-zju

[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 avatar Oct 24 '24 04:10 karmada-bot