Skip to content
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

Add a Helm CI Check #24

Merged
merged 3 commits into from
Feb 8, 2024
Merged

Add a Helm CI Check #24

merged 3 commits into from
Feb 8, 2024

Conversation

ardelato
Copy link
Contributor

@ardelato ardelato commented Feb 7, 2024

Description

This is a very basic check for our Helm charts. While this action is the main entry-point, it is using this CLI tool under the hood https://github.com/helm/chart-testing.

CR

This does a very basic check on our Helm charts. It validates the Chart schema and values.yaml file. It will then use kind to attempt to install the Helm charts. However, it will not validate the final manifests that were deployed to the kind cluster nor if the actual CronJob worked. It will simply check it was successful in installing the Helm chart.

That said, we don't expect a lot of churn for this repo, or the charts, which resulted in the decision to not pursue extensive testing. For example, with tools like Terratest to check if the CronJob worked or the use of golden files to validate the final manifests that were deployed.

QA

qa_req 0 CI should pass as I already tested the action prior to this pull

Closes: #23

This uses the helm/chart-testing-action to do basic linting and testing of
of the helm charts.
A 'charts' dir is used more consistently across the Helm community as well as
for the 'ct' cli tool. This renames the 'helm' dir to 'charts' to align
with these conventions.
Two-spaces are needed for inline comments.
@ghost
Copy link

ghost commented Feb 7, 2024

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend


- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty neat.

Copy link
Member

@mlahargou mlahargou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR 📱

@ardelato ardelato merged commit f4d0e36 into main Feb 8, 2024
2 checks passed
@ardelato ardelato deleted the add-helm-linter-and-tester branch February 8, 2024 17:56
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.

Helm: Add a CI check before deploying Helm changes
3 participants