- Place the chart into
stable
folder - Add repo to your Helm repositories as:
helm repo add matic https://matic-insurance.github.io/helm-charts
- Work with the charts
helm search matic/nginx
NAME CHART VERSION APP VERSION DESCRIPTION
matic/nginx 1.0.0 1.0 A Nginx Helm chart for Kubernetes
git config core.hooksPath .hooks
We use as an example application-mesh chart and redirects component.
-
Add values helm-charts/stable/application-mesh/tests/golden/components/redirects.values.yaml
-
Add new component to helm-charts/stable/application-mesh/tests/golden/golden_test.go
{
GoldenFileName: "components/redirects.golden.yaml",
ValuesFiles: []string{"components/redirects.values.yaml"},
Templates: []string{"templates/redirects.yaml"},
},
- Run
cd helm-charts/stable/application-mesh
go test ./... -update-golden
This command will execute your tests and update the golden files to match the current output.
- Run
go test ./...
- Commit changes