Reusable Helm templates for Kubernetes workloads
Development workflows require uv
We use pre-commit to provide a useful signal that versions need to be bumped
uv tool install pre-commitHelm must be installed for unit tests to run
helm-docs is required during pre-commit runs, installation methods vary by OS:
- MacOS:
brew install norwoodj/tap/helm-docs - Additional info available in repo: https://github.com/norwoodj/helm-docs
Run make install to ensure uv, pre-commit, and helm are installed.
Additionally, this will install/update the unittest Helm plugin.
Update the helm dependencies of all the charts. Does a depth first travels of the depenency tree to update all chart dependencies. Can be dry-run by setting DRY_RUN=1
make update-dependencies DRY_RUN=1By default it will bump the chart versions of the charts that are staged to be committed. This works well in tandem with the pre-commit hook that checks if charts need a version bump. It is also possible to pass individual chart names to the make target.
Default:
make bump-chartsWith arguments:
make bump-charts mozcloud-preview-libThis will run the unit tests for all application charts. Run make install if the unittest Helm plugin is not installed.
Run unit tests:
make unit-testsRun unit tests and update snapshots:
make unit-tests UPDATE_SNAPSHOTS=1 # The following all translate as "true": 1, true, yes