---
globs: test/**,Makefile
description: How to run e2e with example values and package the Helm chart for release
---

## Testing and release

- E2E examples
  - Cluster values: [test/e2e/values.cluster.yaml](mdc:test/e2e/values.cluster.yaml)
  - Standalone values: [test/e2e/values.standalone.yaml](mdc:test/e2e/values.standalone.yaml)
  - KinD cluster config and setup scripts under [test/e2e](mdc:test/e2e)

- Quick e2e smoke deploy (example)
  ```sh
  helm install banyandb ./chart -n banyandb \
    -f test/e2e/values.cluster.yaml \
    --set image.tag=<version>
  ```

- Packaging the chart
  - Targets in [Makefile](mdc:Makefile)
    - `make package`: updates deps and packages `chart/` into a `.tgz`
    - `make release`: builds source tarball and signs it (requires gpg)
    - `make clean`: removes generated artifacts (lock, charts/, tgz, signatures)

- Notes
  - `chart/Chart.yaml` pins Bitnami etcd `12.0.4` and repository `oci://registry-1.docker.io/bitnamicharts`.
  - Ensure `image.tag` matches a BanyanDB version compatible with this chart (see [README.md](mdc:README.md) compatibility table).
