For every change, increment the version
contained in Chart.yaml. The version
should follow the SEMVER versioning pattern.
1.1.3
-> 1.1.4
).1.1.3
-> 2.0.0
).Examples of changes that affect backward compatibility include:
We use helm-docs
to automatically generate and update the README for our Helm chart. After making any changes to the chart or its values, please run:
helm-docs
This command updates the README.md
file based on the chart's values.yaml
file and the README.md.gotmpl
template.
Make sure you have helm-docs
installed. You can install it by following the instructions here.
If you want to ignore a specific section in the values.yaml
file, you can add the # @ignored
tag to the section you want to ignore.
Before submitting a pull request, lint your changes using the helm lint
command:
helm lint .
This will check your chart for potential issues or errors.
We use the helm-unittest
plugin for unit testing our Helm chart. This helps ensure that our chart templates are rendering correctly and that changes don't introduce unexpected issues.
If you haven't already installed the helm-unittest
plugin, you can do so with the following command:
helm plugin install https://github.com/quintush/helm-unittest
To run the unit tests, use the following command from the root of the chart directory:
helm unittest .
This will run all test files located in the tests/
directory.
Unit tests are written in YAML and should be placed in the tests/
directory. Each test file should focus on a specific template or set of related templates.
Here's a basic structure for a test file:
suite: test <template-name>
templates:
- <template-name>.yaml
tests:
- it: should <do something>
set:
<value-to-set>: <value>
asserts:
- <assertion>
For more detailed information on writing tests, refer to the helm-unittest documentation.
TODO: Implement CI pipeline for running unit tests and linting.