Skip to content

dsb-norge/helm-charts

Repository files navigation

Helm 3 charts for DSB applications

This repo contains multiple Helm charts used across DSB workloads. Each chart has its own README with usage and values.

Charts included:

Create a new release by committing a new version in charts/*/Chart.yaml.

Linting

# Helm
helm lint charts/*

# Chart-testing
docker run --pull always -it --rm --name unittest --volume "$(pwd)":"$(pwd)" --workdir "$(pwd)" dsbacr.azurecr.io/cache/quay-io/helmpack/chart-testing ct lint --all --validate-maintainers=false

Unit tests

Run unit tests

docker run --pull always -it --rm --name unittest --volume "$(pwd)":/apps dsbacr.azurecr.io/cache/docker-io/helmunittest/helm-unittest charts/*

Update the test snapshots

docker run --user 1001:1001 --pull always -it --rm --name unittest --volume "$(pwd)":/apps dsbacr.azurecr.io/cache/docker-io/helmunittest/helm-unittest --update-snapshot charts/*

Debug errors like error converting YAML to JSON: yaml: line X

Running the command

helm template -f example.yaml test-application [CHART_NAME] > output.yaml

will produce an output structure in output.yaml making it easier to see indenting faults or similar

Chart-specific docs

Each chart has its own README with values and examples:

  • charts/dsb-nginx-frontend/README.md
  • charts/dsb-spring-boot/README.md
  • charts/dsb-spring-boot-job/README.md
  • charts/dsb-python-function/README.md