Skip to main content
Version: 2.23 (prerelease)

helm-infer


Options controlling which dependencies will be inferred for Helm targets.

Backend: pants.backend.experimental.helm.check.kubeconform

Config section: [helm-infer]

Basic options

external_docker_images

--helm-infer-external-docker-images="['<str>', '<str>', ...]"
PANTS_HELM_INFER_EXTERNAL_DOCKER_IMAGES
pants.toml
[helm-infer]
external_docker_images = [
'<str>',
'<str>',
...,
]
default: []

Docker image names that are not provided by targets in this repository and should be ignored for calculating dependencies.

For example, adding python to this setting will cause Pants to not try to find the target python:3.10 in the following helm_deployment:

&#x60; helm_deployment( name="my-deployment", chart=":mychart", values={"container.image_ref": "python:3.10"}, ) &#x60;

Use the value '*' to disable this check. This will limit Pants's ability to warn on unknown docker images.

unowned_dependency_behavior

--helm-infer-unowned-dependency-behavior=<UnownedHelmDependencyUsage>
PANTS_HELM_INFER_UNOWNED_DEPENDENCY_BEHAVIOR
pants.toml
[helm-infer]
unowned_dependency_behavior = <UnownedHelmDependencyUsage>
one of: error, warning, ignore
default: error

How to handle inferred dependencies that don't have an inferrable owner.

Usually when an import cannot be inferred, it represents an issue like Pants not being properly configured, e.g. targets not set up. Often, missing dependencies will result in confusing runtime errors where Docker images haven't been published, so this option can be helpful to error more eagerly.

Advanced options

deployment_dependencies

--[no-]helm-infer-deployment-dependencies
PANTS_HELM_INFER_DEPLOYMENT_DEPENDENCIES
pants.toml
[helm-infer]
deployment_dependencies = <bool>
default: True

If true, parse k8s manifests generated by helm to find dependencies on other targets like docker images.

Deprecated options

None

None