Repository navigation
feat: Add Helm chart and release workflow for ncps - #402
Conversation
Summary of ChangesHello @kalbasit, 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 operational capabilities of the Nix Cache Proxy Server (ncps) by introducing a robust Helm chart. This allows users to easily deploy, configure, and manage ncps instances within a Kubernetes environment, supporting diverse storage and database needs, and enabling high-availability setups. The addition of an automated release workflow streamlines the distribution and versioning of the Helm chart, making it more accessible and maintainable for the community. Highlights
Ignored Files
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
|
71424b1 to
7ca04b6
Compare
There was a problem hiding this comment.
Code Review
This is an excellent and comprehensive Helm chart for ncps. The structure, documentation, and use of modern Helm features like values.schema.json and validation helpers are all best practices. I've found one critical issue in the configmap.yaml related to how upstream public keys are configured, which would prevent the chart from working correctly. I also have a suggestion to improve the documentation in the README.md by removing hardcoded release names from example commands. Overall, great work!
a781d77 to
595863e
Compare
7ca04b6 to
67083f7
Compare
67083f7 to
e422489
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive Helm chart for ncps, including templates for Deployment and StatefulSet modes, various storage and database backends, and a release workflow. The chart is well-structured with extensive documentation, examples, and validation. My review focuses on ensuring the Helm templates are robust and correctly implemented. I've identified a couple of issues: a high-severity issue with a hardcoded port that could break deployments with custom configurations, and a medium-severity issue where the PodDisruptionBudget feature is defined but not implemented. Overall, this is an excellent contribution that significantly improves the deployability of ncps.
ecf6918 to
0343ed0
Compare
0343ed0 to
576c8f8
Compare
6ba9a0a to
195d1c6
Compare
576c8f8 to
55a0cd9
Compare
195d1c6 to
72329dd
Compare
55a0cd9 to
703af60
Compare
ed236be to
fe476c1
Compare
703af60 to
8641d8d
Compare
b72e448 to
6798b0f
Compare
c95f209 to
b04f0fa
Compare
8808f6e to
6123a59
Compare
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive and well-structured Helm chart for ncps. The chart is feature-rich, supporting various deployment modes, storage backends, and database options. The inclusion of detailed documentation in the README.md, NOTES.txt, and a values.schema.json is excellent and will greatly benefit users. The validation logic in _helpers.tpl is robust and helps prevent common misconfigurations.
I've found a critical issue related to how secret keys are referenced in deployment.yaml and statefulset.yaml, which would prevent pods from starting when using external secrets. I've also provided suggestions to improve the troubleshooting documentation and make the Helm tests more deterministic.
Overall, this is a high-quality contribution. Once the critical issue is addressed, this chart will be in great shape.
6ecff77 to
e2115d7
Compare
e431ecd to
069d101
Compare
e2115d7 to
1a0ecf5
Compare
069d101 to
b7d24ac
Compare
1a0ecf5 to
9a83d9e
Compare
b7d24ac to
b7eccb1
Compare
4ba61bc to
73c2035
Compare
b7eccb1 to
f23ecd2
Compare
73c2035 to
1334523
Compare
f23ecd2 to
e9cb9bc
Compare
e9cb9bc to
7fb58be
Compare

Add Helm Chart for ncps (Nix Cache Proxy Server)
This PR adds a comprehensive Helm chart for deploying ncps (Nix Cache Proxy Server) on Kubernetes. The chart supports both single-instance and high-availability deployments with various configuration options.
Key features:
The PR also adds a GitHub workflow for automated Helm chart releases, which:
helm-v*tagsAdditionally, the PR updates the Claude settings to allow Helm-related commands and updates the YAML formatting configuration to reference the new chart directory.