Skipping Helm Tests to Avoid Errors

Skipping Helm Tests to Avoid Errors

 Problem

Some automated deployment pipelines are configured to run helm test as part of the Helm chart deployment process.

In the HiveMQ Platform Helm chart, helm test creates a hivemq-test-connection pod containing the hivemq/mqtt-cli container image.

This pod is intended only for functional connectivity tests and is not configurable via values.yaml.

In environments with strict image registry policies, the hivemq/mqtt-cli image is not available in the allowed registry. As a result, automated deployments fail with errors such as:

container <hivemq-mqtt-cli> has an invalid image repo <hivemq/mqtt-cli:4.40.0>, allowed repos are ["<internal-registry>"

 

 Solution

Skip the test pod execution during deployment by using the --filter flag in the helm test command.

Example Command:

helm test <deployment-name> --filter name=ignore

 

 

 Related articles