This repository contains Helm charts that we use in ArgoCD / Argus.
The stack
chart is the standard chart for used when deploying an Argus application.
helm plugin install https://github.com/helm-unittest/helm-unittest.git
- run
make test
(ormake test-debug
to see the templates generated by the unit tests)- this can be run from the root directory to run tests for all charts
- or from any helm chart directory to run tests just for that chart
You can create a stack from a chart that has not been published.
Suppose you want to test some local changes of the stack helm chart in the argus-example-app
. To do so you would:
- Clone the
argus-example-app
repository - Change the
.infra/rdev/Chart.yaml
in theargus-example-app
to point to the local directory- set the
repository
of thestack
chart dependency tofile://<relative path to argo-helm-charts/stack/ directory>
- set the
- Run
helm dependency update
from a terminal in theargus-example-app
repository - Create a new branch then commit and push the changes to the
argus-example-app
repository- This should include your changes to
.infra/rdev/Chart.yaml
, the newly created.infra/rdev/Chart.lock
, and the.infra/rdev/charts/stack-<X.Y.Z>.tgz
file
- This should include your changes to
- Create a PR in the
argus-example-app
repository and create a stack in Argus using thestack
label on the PR
Here is an example of the changes
NOTE: Do not merge .infra/rdev/Chart.lock
or .infra/rdev/charts/stack-<X.Y.Z>.tgz
into the main branch. These files should only be used for testing purposes.