Skip to content

feat: Add test values generator for Helm chart - #416

Merged
kalbasit merged 4 commits into
mainfrom
k8s-helm-chart-testing
Jan 2, 2026
Merged

kalbasit merged 4 commits into
mainfrom
k8s-helm-chart-testing

Conversation

@kalbasit

@kalbasit kalbasit commented Jan 2, 2026

Copy link
Copy Markdown
Owner

Add test values generation script for Helm chart

This PR adds a comprehensive script for generating test values files for the NCPS Helm chart. The script creates a set of test configurations that cover various deployment scenarios including:

  • Single instance deployments with local storage and SQLite/PostgreSQL/MariaDB
  • Single instance deployments with S3 storage and SQLite/PostgreSQL/MariaDB
  • High availability deployments with S3 storage, PostgreSQL/MariaDB, and Redis
  • Configurations using existing Kubernetes secrets

The implementation includes:

  • A generate-test-values.sh script that automatically detects cluster credentials and generates 10 different values files
  • Helper scripts for quick installation, testing, and cleanup of test deployments
  • A Python test script (test-deployments.py) that validates deployments by checking pods, HTTP endpoints, database connectivity, and storage
  • Documentation for each test scenario and usage instructions

The generated test values are added to .gitignore to prevent accidental commits of environment-specific configurations.

This enables developers to quickly test the Helm chart with various configurations and validate functionality across different storage and database backends.

@dosubot

dosubot Bot commented Jan 2, 2026 •

Copy link
Copy Markdown

Related Documentation

Checked 7 published document(s) in 0 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @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 testing capabilities for the NCPS Helm chart by introducing a robust framework for generating and validating diverse deployment configurations. It automates the creation of test environments spanning various storage and database backends, including both single-instance and high-availability setups, and provides tools for quick installation, comprehensive testing, and efficient cleanup. This automation aims to improve the reliability and development velocity of the Helm chart by ensuring consistent validation across a wide array of deployment scenarios.

Highlights

  • Automated Test Values Generation: Introduced a new generate-test-values.sh script that automatically detects cluster credentials and generates 10 different Helm values.yaml files for various NCPS deployment scenarios.
  • Comprehensive Deployment Scenarios: The generated test values cover single instance deployments (with local or S3 storage, and SQLite, PostgreSQL, or MariaDB), high availability deployments (with S3, PostgreSQL/MariaDB, and Redis), and configurations utilizing existing Kubernetes secrets.
  • Integrated Testing Framework: Added helper scripts (QUICK-INSTALL.sh, CLEANUP.sh, TEST.sh) for streamlined installation, testing, and cleanup of these diverse deployments. A new Python script (test-deployments.py) validates deployments by checking pods, HTTP endpoints, database connectivity, and storage.
  • Developer Experience Improvements: The generated test values are added to .gitignore to prevent accidental commits, and the Nix development shell is updated with necessary Python dependencies for the testing script.
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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

  1. 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. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 comprehensive test generation and execution framework for the Helm chart, which is an excellent addition for improving testing and validation across various deployment scenarios. The implementation is solid, covering a wide range of configurations. My review includes a few suggestions to enhance the robustness and maintainability of the new scripts, primarily focusing on improving error handling, removing hardcoded values, and making parsing logic more resilient. Overall, this is a very valuable contribution to the project's testing capabilities.

Comment thread dev-scripts/generate-test-values.sh Resolved
Comment thread dev-scripts/generate-test-values.sh Resolved
Comment thread dev-scripts/test-deployments.py Resolved
Comment thread dev-scripts/test-deployments.py Resolved
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch from 9cbfbeb to 18660a3 Compare January 2, 2026 04:52
@kalbasit
kalbasit force-pushed the k8s-helm-chart branch 2 times, most recently from 6123a59 to e431ecd Compare January 2, 2026 05:06
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch 2 times, most recently from 87df771 to 39b2f8f Compare January 2, 2026 05:06
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch from 39b2f8f to 075eaa1 Compare January 2, 2026 05:33
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch from 075eaa1 to 6dab892 Compare January 2, 2026 05:46
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch from 6dab892 to 68a1aa4 Compare January 2, 2026 05:56
@kalbasit
kalbasit force-pushed the k8s-helm-chart branch 2 times, most recently from e9cb9bc to 7fb58be Compare January 2, 2026 06:06
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch from 68a1aa4 to 7005e2d Compare January 2, 2026 06:06
@kalbasit
kalbasit changed the base branch from k8s-helm-chart to graphite-base/416 January 2, 2026 06:17
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch from 7005e2d to 9eef3b0 Compare January 2, 2026 06:18
@kalbasit
kalbasit changed the base branch from graphite-base/416 to main January 2, 2026 06:18
@kalbasit
kalbasit force-pushed the k8s-helm-chart-testing branch from 9eef3b0 to 18004eb Compare January 2, 2026 06:18
@kalbasit
kalbasit merged commit ee52047 into main Jan 2, 2026

kalbasit commented Jan 2, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

@kalbasit
kalbasit deleted the k8s-helm-chart-testing branch January 2, 2026 06:31
@kalbasit kalbasit added this to the v0.6.0 - High Availability milestone Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant