Repository navigation
[helm] document every values, udpate json schema and various fix - #886
Conversation
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 significantly enhances the Helm chart for the vLLM production stack by improving configuration consistency, introducing a dedicated LMCache server specification, and integrating comprehensive observability features. It addresses several discrepancies between documentation and actual values, streamlines PVC management, and automates schema generation, making the deployment more robust and easier to monitor. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Ignored Files
Activity
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 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 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
|
There was a problem hiding this comment.
Code Review
This pull request introduces a significant number of improvements to the Helm chart, including enhanced documentation, a more robust values structure with JSON schema validation, and the integration of monitoring capabilities with Prometheus and Grafana. The changes also refactor the observability setup into the main Helm chart, making it more self-contained. My review focuses on improving the robustness of the new test scripts and simplifying some of the shell script logic.
3d51a7d to
c357442
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request significantly improves the Helm chart by documenting all values, adding a pre-commit hook for JSON schema generation, and introducing comprehensive tests for various components. The templates have been refactored for better configurability and adherence to best practices, and several inconsistencies have been resolved. The enhanced shared-storage template, now supporting dynamic provisioning, is a notable improvement. I have one suggestion to ensure robustness in the cache server deployment template.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a significant and valuable refactoring of the Helm chart. The changes greatly improve the organization, documentation, and test coverage, making the chart more robust and easier to use. Key improvements include standardizing value paths, adding comprehensive documentation and JSON schema annotations to values.yaml, and introducing extensive unit tests for various components. The logic for handling shared storage and enabling/disabling components has also been clarified. I've identified a few minor areas for improvement related to quoting values in the templates to ensure the generated YAML is always valid. Overall, this is an excellent contribution.
28739f4 to
9e4c5ea
Compare
|
Looking forward to the PR being merged, we also need the sharedPvcStorage fixes! |
ruizhang0101
left a comment
There was a problem hiding this comment.
Thanks for refactoing the helm chart. This is really useful! I attached some comments, lemme know what you think :)
3e86e26 to
95f9ba5
Compare
|
Could you resolve the conflict and then I think it is good to go :) |
Signed-off-by: enneitex <[email protected]>
…son schema Signed-off-by: enneitex <[email protected]>
Signed-off-by: enneitex <[email protected]>
Signed-off-by: enneitex <[email protected]>
Signed-off-by: enneitex <[email protected]>
95f9ba5 to
228bc48
Compare
|
Hey @ruizhang0101 the PR has been rebased. |
Signed-off-by: enneitex <[email protected]> feat(helm) improve testing around rayCluster and engine deployment Signed-off-by: enneitex <[email protected]> ci: retrigger Signed-off-by: enneitex <[email protected]> fix(tutorials) rename ScaledObject file name Signed-off-by: enneitex <[email protected]> fix pre-commit Signed-off-by: enneitex <[email protected]>
228bc48 to
13c9500
Compare
|
@enneitex |
|
Hi, |
|
Damn, I took the value from the README which mentioned |
|
Sorry, I have to add one more thing. In my opinion, you should either set this value to |
|
No problem! |
|
I'm back. With this PR, you added the Problem: The file In For now, I have removed the livenessProbe. It’s not ideal, but I wanted to let you know about it. |
…m-project#886) * fix(helm) update sharedPvcStorage so it correctly create PVC and/or PV Signed-off-by: enneitex <[email protected]> * fix(helm) various fix to align values, templates and README. update json schema Signed-off-by: enneitex <[email protected]> * fix(helm) use correct type for lmcacheControllerPort Signed-off-by: enneitex <[email protected]> * fix(helm) rayCluster: fix templating and add tests Signed-off-by: enneitex <[email protected]> * fix(helm) deployment-router: simplify templating and add tests Signed-off-by: enneitex <[email protected]> * feat(helm) improve schema, add tests and CI validation Signed-off-by: enneitex <[email protected]> feat(helm) improve testing around rayCluster and engine deployment Signed-off-by: enneitex <[email protected]> ci: retrigger Signed-off-by: enneitex <[email protected]> fix(tutorials) rename ScaledObject file name Signed-off-by: enneitex <[email protected]> fix pre-commit Signed-off-by: enneitex <[email protected]> --------- Signed-off-by: enneitex <[email protected]> Co-authored-by: Rui Zhang <[email protected]> Signed-off-by: Ifta Khairul Alam Adil <[email protected]>
Contributes to #840
fixes #861
fixes #751
Diff is huge but more than 2k LoC are from unit tests and 1700 lines for the json schema
Changes
This PR is trying to fix a few things:
README.mdwere wrong or missing from thevalues.yaml.values.yamlwere not used in the templatesvalues.yamlsharedPvcStorage.There was no way to only create a PVC while a lot of people have access to storageClass and dynamic provisioning. PV is only created when specifying a nfs server or a hostPathcacheserverSpecandsharedPvcStoragewere missing from the values so I added it with unit testsvalues.yamland updated by a pre commit hookmodelSpecandloraAdapters. they are not deployed by default but used to generate the schemaTo help review the PR
The json schema diff is hard to review. I ran
helm lintwith each value file from the CI to make sure they respect the updated schemaI also ran
helm templateon each value file from.github/values*.yamland../tutorials/assets/values*.yamland compared the output between main and this branch.Breaking changes
Before, this was enough to deploy the cache server
Now it needs the following values:
Same thing for the rayClusters:
Before:
After:
Even if the version is pre v1.0.0, a comment should be added to the release note and maybe a minor version bump (v0.2.0)