feat: add scheduler empty-workload chart option#7570
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @tamarubin! It looks like this is your first PR to karmada-io/karmada 🎉 |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new configuration option for the Karmada scheduler, enabling users to control the propagation of workloads with zero replicas. By adding a new Helm value and updating the deployment template, the change provides a flexible way to manage this specific scheduling behavior without requiring manual command-line overrides. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a Helm chart value and corresponding scheduler flag to optionally enable propagation of zero-replica workloads in karmada-scheduler, and documents the new setting.
Changes:
- Introduce
scheduler.enableEmptyWorkloadPropagationinvalues.yaml(defaultfalse) - Conditionally add
--enable-empty-workload-propagation=trueto the scheduler container args when enabled - Document the new chart value in the chart README parameter table
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| charts/karmada/values.yaml | Adds a new scheduler value toggle with inline parameter documentation. |
| charts/karmada/templates/karmada-scheduler.yaml | Wires the new value to a conditional scheduler CLI flag. |
| charts/karmada/README.md | Documents the new scheduler.enableEmptyWorkloadPropagation option. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request introduces a new configuration option, scheduler.enableEmptyWorkloadPropagation, to the Karmada Helm chart. This parameter allows users to enable scheduler propagation for zero-replica workloads by passing the --enable-empty-workload-propagation=true flag to the karmada-scheduler deployment. The option defaults to false and has been documented in the chart's README and values files. I have no feedback to provide as the changes are straightforward and correct.
442ad15 to
2a55121
Compare
- Add scheduler.enableEmptyWorkloadPropagation to chart values. - Render --enable-empty-workload-propagation when the value is true. - Document the new scheduler chart option in README. Signed-off-by: Tamarrubin <tamarubin8484@gmail.com>
2a55121 to
38135f5
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7570 +/- ##
==========================================
+ Coverage 42.16% 42.17% +0.01%
==========================================
Files 879 879
Lines 54682 54729 +47
==========================================
+ Hits 23055 23083 +28
- Misses 29896 29911 +15
- Partials 1731 1735 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
scheduler.enableEmptyWorkloadPropagationas a Helm value for the scheduler--enable-empty-workload-propagation=truewhen the value is enabledTest plan
helm template karmada ./charts/karmada --set scheduler.enableEmptyWorkloadPropagation=true--enable-empty-workload-propagation=trueMade with Cursor