-
Notifications
You must be signed in to change notification settings - Fork 919
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
[Proposal] Support for cluster-level resource propagation pause and resume capabilities #5118
[Proposal] Support for cluster-level resource propagation pause and resume capabilities #5118
Conversation
/cc @CharlesQQ @a7i @chaunceyjiang @whitewindmills |
@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:
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #5118 +/- ##
==========================================
+ Coverage 28.23% 28.25% +0.01%
==========================================
Files 632 632
Lines 43723 43739 +16
==========================================
+ Hits 12345 12358 +13
- Misses 30473 30479 +6
+ Partials 905 902 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@XiShanYongYe-Chang |
/assign |
81b39a1
to
2dd94a0
Compare
Hi @CharlesQQ @chaunceyjiang @whitewindmills @RainbowMango , it's ready to review again. |
2dd94a0
to
f5a3454
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi!
Thanks for your proposal!
In Solution One, the SchedulePause
of ResourceBinding
is propagated through PropagationPolicy
. If I create a PropagationPolicy
with a PauseStrategy
set to nil
by default, is it feasible to only update the SchedulePause
of ResourceBinding
to true via a webhook when the karmada detector
creates the ResourceBinding
? If this is feasible, does "propagation" mean that the associated ResourceBinding/Work
is only updated when the PropagationPolicy
updates the PauseStrategy
field?
I also have a suggestion: can this issue be considered as a user story? In brief, it involves pausing the ResourceBinding
at the time of creation through a webhook, and then using a custom controller to determine when certain ResourceBindings
can be scheduled.
+1 |
For solution 1, the source of user control is in the PropagationPolicy. If it is modified through webhook, it will be inconsistent with the declaration of PropagationPolicy. I think solution 2 might be better for your scenario. |
f5a3454
to
30c5f03
Compare
/retest |
Hi guys, at the moment, I'm inclined towards Plan One, as it is more straightforward and convenient for users, without the need for learning new APIs. If we introduce a new API to describe the pause strategy for resources, it might seem a bit limited. Later on, if we provide a Rollout API, we can then focus on thinking about adding new APIs. How do you think? @CharlesQQ @chaunceyjiang @whitewindmills @RainbowMango @a7i @Monokaix @Vacant2333 |
I vote for solution one and sent the draft API on #5118 (comment). |
That sounds good! Once approved/finalized, would you be open to contributions or did you want to lead this change? |
Of course, I will create a new issue to track the tasks that need to be completed, and I look forward to your participation in some of these tasks. |
Hi Amir, After we make the decision here, we can get started from #4838(the one you sent 3 months ago, sorry again for the delay). |
+1 |
30c5f03
to
9ad7037
Compare
…ilities Signed-off-by: changzhen <[email protected]>
9ad7037
to
24e56c7
Compare
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[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 |
What type of PR is this?
/kind design
/kind documentation
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1567, #4421, #4688
Special notes for your reviewer:
Other related issues: #4937
Does this PR introduce a user-facing change?: