Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.63 KB

README.md

File metadata and controls

72 lines (49 loc) · 1.63 KB

otf-charts

Helm charts for OTF.

Usage

Add the helm repository:

helm repo add otf https://leg100.github.io/otf-charts

Then follow instructions for installing the relevant chart:

Development

Bumping the chart version

If you make any changes to a chart you need to bump its chart version. You can either do that by hand in Chart.yaml, or using make:

# requires `yq`
#
# To update the otfd chart version
CHART=otfd make bump
#
# To update the otf-agent chart version
CHART=otf-agent make bump

Generating README.md's

Each chart's README.md is generated from a template, README.md.gotmpl in the same directory, using helm-docs. Therefore any changes must be made to README.md.gotmpl and not README.md. To update all templated README.md's, run the following from the root of the repo:

helm-docs

Any changes to the version or to the values.yaml file are automatically reflected in the generated README.md.

Linting

To lint the charts to check for any errors run helm lint:

# lint the otfd chart
helm lint ./charts/otfd
# lint the otf-agent chart
helm lint ./charts/otf-agent

Deploy and test otfd chart

To deploy the ./charts/otfd chart to a cluster to the namespace otfd-test with pre-configured defaults along with PostgreSQL:

make deploy-otfd

To test the chart (assumes release is named otfd):

make test-otfd

And to lint, deploy, and then test the chart:

make all