github alexellis/arkade 0.8.37
Add `chart verify` command to verify Helm chart images exist

latest releases: 0.11.24, 0.11.23, 0.11.22...
2 years ago

Changelog for 0.8.37:

Commits
9ebc878 Document chart verify command by @alexellis
de25ba8 Add command to verify chart images by @alexellis

Changes: 0.8.36...0.8.37

Generated by Derek

Docs:

Validate Helm chart images from within a values.yaml file

The arkade chart validate command validates that all images specified are accessible on a remote registry and takes a values.yaml file as its input.

Successful checking of a chart with image: ghcr.io/openfaas/cron-connector:TAG:

arkade chart verify  -f ~/go/src/github.com/openfaas/faas-netes/chart/cron-connector/values.yaml

echo $?
0

There is an exit code of zero and no output when the check passed.

You can pass --verbose to see a detailed view of what's happening.

Checking of nested components, where two of the images do not exist autoscaler.image and dashboard.image:

arkade chart verify  -f ~/go/src/github.com/openfaas/faas-netes/chart/openfaas/values.yamlecho $?
2 images are missing in /Users/alex/go/src/github.com/openfaas/faas-netes/chart/openfaas/values.yaml

COMPONENT           IMAGE
dashboard           ghcr.io/openfaasltd/openfaas-dashboard:0.9.8
autoscaler          ghcr.io/openfaasltd/autoscaler:0.2.5

Error: verifying failed

echo $?
1

Supported:

  • image: - at the top level
  • component.image: i.e. one level of nesting

Not supported yet:

  • Custom strings that don't match the word "image": clientImage:
  • Split fields for the image and tag name i.e. image.name and image.tag
  • Third-level nesting openfaas.gateway.image

Don't miss a new arkade release

NewReleases is sending notifications on new releases.