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
[helm-infer]
external_docker_images = [
'<str>',
'<str>',
...,
]
[]
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
:
`
helm_deployment(
name="my-deployment",
chart=":mychart",
values={"container.image_ref": "python:3.10"},
) `
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
[helm-infer]
unowned_dependency_behavior = <UnownedHelmDependencyUsage>
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
[helm-infer]
deployment_dependencies = <bool>
True
If true, parse k8s manifests generated by helm to find dependencies on other targets like docker images.
Deprecated options
None
Related subsystems
None