Kustomize backend for Pants

PyPI

Warning This plugin is in development. No stability is guaranteed! Contributions welcome.

This backends implements targets for kustomize templates.

  • kustomize for overlaying state ontop of raw kubernetes files

Planned and missing features

  • Key/secret/... generation from built artifacts

Targets

There's currently one target.

kustomize

A code-generation target for converting a bundle of kubernetes files into a single multi-docuent YAML file with state injected from other Pants targets.

kustomize(
    name="kustomize",
    sources=[
        "deployment.yaml",
        "server.py",
        "service.yaml",
        "namespace.yaml",
		"kustomization.yaml",
    ],
    dependencies=[":bin"],
)
ArgumentMeaningDefault value
nameThe target nameSame as any other target, which is the directory name
sourcesResources used by this targetRequired
dependenciesTargets to package and pass to the build context, as well as bases[]
decsriptionA description of the target
tagsList of tags[]

For dependencies, the builder will replace labels in the kustomization.yaml with the path of the built package.