-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Set root queue capability through helm #4566
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
base: master
Are you sure you want to change the base?
Conversation
|
Welcome @hajnalmt! |
|
[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.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Summary of Changes
Hello @hajnalmt, 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 Helm chart value to allow users to configure the capability for the root queue in Volcano. This change addresses an issue where capability checks could fail when the hierarchy plugin is enabled, ensuring proper functionality by allowing the root queue's capabilities to be explicitly set via Helm.
Highlights
- New Helm Value for Root Queue Capability: Introduces
rootQueue.capabilityinvalues.yamlto enable configuration of the root queue's capabilities. - Dynamic Root Queue Resource Generation: Adds a new Helm template
root_queue.yamlthat conditionally creates aQueueresource for therootqueue, applying the specified capability if provided. - Addresses Hierarchy Plugin Issue: Resolves a known issue (#4350 and #4496) where the hierarchy plugin's capability checks could fail without proper root queue capability settings.
Using Gemini Code Assist
The 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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize 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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
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.
Code Review
This pull request introduces a new Helm chart value to configure the capability for the root queue. The implementation is straightforward, adding a new template and updating values.yaml. My main feedback is to use snake_case for the new Helm value (root_queue) to maintain consistency with the existing values in the chart, which improves maintainability. I've provided suggestions to apply this change across both modified files.
2458b31 to
3f54713
Compare
JesseStutler
left a comment
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.
Also need to run make update-development-yaml to render helm template to volcano-development.yaml
|
volcano/pkg/scheduler/cache/cache.go Lines 439 to 491 in bc0df8e
Besides, currently we install the root queue and the default queue after scheduler starts, if we need to move default queue and root queue installation to helm, we may consider deleting these codes |
|
/ok-to-test |
When the hierarchy plugin is enabled, the capability check can fail: volcano-sh#4350 It will pass now, if the capability is set properly: volcano-sh#4354 We should be able to set this value for the root queue through helm too. Signed-off-by: Hajnal Máté <[email protected]>
3f54713 to
442b111
Compare
|
The |
Yes some users may just directly use |
|
There are a lot of CIs failed @hajnalmt , is that because the conflict with current codes in cache.go? |
|
Sighs, it's a different issue... The problem is that the queue CRD does not exist when the chart get's installed. The practice currently is still the templating: |
Our crds are also defined in a separate folder. Doesn't it mean that CRDs will be installed first? Then why is it still reporting an error that queue crd does not exist? We didn't update crd, but just installed a cr, right? |
Our folder name is crd and not crds, and they are just referenced from the templates. For helm to install the CRDs first, they should be in a crds directory... After that you can use the helm CLI parameters to skip their installation (--skip-crds) the problem is that this makes the CRDs not upgradable, see the caveats section here: |
|
@JesseStutler Shall I close this until Helm has a better way to install the CRDs? |
|
@hajnalmt Hi, I have a idea that might solve your problem, The core idea is: @JesseStutler Please take a look together when you have time. |
When the hierarchy plugin is enabled, the capability check can fail:
#4350
It will pass now, if the capability is set properly: #4354
We should be able to set this value for the root queue through helm too.
What type of PR is this?
The PR adds a helm value that will render the rootQueue capability if provided.
What this PR does / why we need it:
Minor change in the helm chart.
Which issue(s) this PR fixes:
Fixes #4496
Does this PR introduce a user-facing change?