Skip to main content

Kustomize backend for Pants

This release targets Pants 2.31.0. Install it with pants-backend-kustomize==0.7.0 in [GLOBAL].plugins in pants.toml.

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

Tool versions

The default is standalone Kustomize v5.8.3. Versions v5.7.1, v5.0.3, and v4.5.7 are also recorded for Linux/macOS on x86-64 and ARM64. Select one with --kustomize-tool-version=v4.5.7 or [kustomize-tool].version. Standalone Kustomize versions are independent of the Kustomize embedded in kubectl; older entries provide compatibility choices rather than a promise of ongoing upstream maintenance.

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"],
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
sources Resources used by this target Required
dependencies Targets to package and pass to the build context, as well as bases []
decsription A description of the target
tags List of tags []

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

Metadata

Release files for pants-backend-kustomize 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pants-backend-kustomize 0.7.0
File Size Uploaded
pants_backend_kustomize-0.7.0.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pants-backend-kustomize 0.7.0
File Interpreter ABI Platform
pants_backend_kustomize-0.7.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 20.7 kB

Release files / pants_backend_kustomize-0.7.0.tar.gz

Download URL pants_backend_kustomize-0.7.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6b318b79ad4a47f7edb279a133b49f1e715aa59d0690cba93b7f061f38b8f082
BLAKE2b-256 checksum
How to use checksums
3dc06b07ff036db96a7e72e88865a09676c4ba4d899a5699e2522df5e7fc788c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release files / pants_backend_kustomize-0.7.0-py2.py3-none-any.whl

Download URL pants_backend_kustomize-0.7.0-py2.py3-none-any.whl
Size 11.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1e00560669be33e39706b2210bd1242cfd5096ff49ae77b877e5500dc822be34
BLAKE2b-256 checksum
How to use checksums
f260742848954802f1c1bf35638443b5f466c1408fd65685c98c875b9dc1cd46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.1

2 release files

0.6.0

1 release file

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page