Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Kubernetes backend for Pants

This release targets Pants 2.32.x. Install it with pants-backend-k8s==0.8.0rc0 in [GLOBAL].plugins in pants.toml.

PyPI

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

This backends implements targets for working with Kubernetes clusters using raw YAML.

Tool versions

The default is kubectl v1.37.1, with v1.36.5, v1.35.9, and v1.34.12 also recorded for Linux/macOS on x86-64 and ARM64. Select a version with --kubectl-tool-version=v1.35.9 or [kubectl-tool].version in pants.toml. Follow the Kubernetes release/EOL dates when choosing a minor; kubectl must be within one minor of the API server. The 1.34 entries are due for removal after their 2026-10-27 EOL.

Targets

There's currently three targets for pants-backend-k8s:

k8s_source

A file that can be passed into other k8s fields that are not source fields. For example, k8s_object.template.

k8s_source(
    name="namespace.yaml",
    source="namespace.yaml",
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
source The raw file Required
decsription A description of the target
tags List of tags []

This'll eventually be automated like other rules once a suitable heuristic for generation with tailor is found. PRs welcome!

k8s_object

Input for a kubernetes command, either generated via kustomize or via k8s_source.

k8s_object(
    name="k8s",
    description="the chat backend"
    template=[":kustomize"],
    namespace="chat-app",
    cluster="prod",
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
template The target to act on Required
namespace Namespace to target Optional, will use default kubectl namespace
cluster cluster to target Optional, will use default kubectl cluster
decsription A description of the target
tags List of tags []

k8s_object is a generator for kubernetes target parametrized by the potential commands that are available: apply, create, get, describe, replace, and delete.

k8s_objects

A collection of kubernetes objects that should be managed together.

k8s_objects(
    name="my-service",
    description="all components of service-x"
    objects=[":namespace", ":deployment"],
)
Argument Meaning Default value
name The target name Same as any other target, which is the directory name
objects k8s_object targets that should be managed Required
decsription A description of the target
tags List of tags []

Like k8s_object, k8s_objects is a generator for parametrized targets for the commands that are available: apply, create, get, describe, replace, and delete.

Metadata

Release files for pants-backend-k8s 0.8.0rc0

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-k8s 0.8.0rc0
File Size Uploaded Provenance Actions
pants_backend_k8s-0.8.0rc0.tar.gz 11.7 kB Without provenance Details for pants_backend_k8s-0.8.0rc0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pants-backend-k8s 0.8.0rc0
File Interpreter ABI Platform Actions
pants_backend_k8s-0.8.0rc0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pants_backend_k8s-0.8.0rc0-py2.py3-none-any.whl

Total release size: 25.1 kB

Release files / pants_backend_k8s-0.8.0rc0.tar.gz

Download URL pants_backend_k8s-0.8.0rc0.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f3cfb35e78e2b52497ff320ac83dbf778002a3ce940d1080a323018f6bd49cc1
BLAKE2b-256 checksum
How to use checksums
433dad795ea8af101c785db6e4b81984537207b2c0417d00501b99b7f37a2c9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / pants_backend_k8s-0.8.0rc0-py2.py3-none-any.whl

Download URL pants_backend_k8s-0.8.0rc0-py2.py3-none-any.whl
Size 13.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9105918cd26106341ff9955a7eb8cecce9cedb8b25eaebf76ae5493827255255
BLAKE2b-256 checksum
How to use checksums
6bf34e4bc4f7492c64ac0fd3faee1e813ffb6809d6abec749e501d9f87e87a8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Security for pants-backend-k8s 0.8.0rc0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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