Skip to main content

A Kustomize plugin for the Pants build system

Project description

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

Kustomize backend for Pants

This backends implements targets for kustomize templates.

  • kustomize for overlaying state ontop of raw kubernetes files

Planned and missing features

  • Injecting more state into the templates, specifically image SHAs from the built-in Pants backend for docker, or from pants-backend-oci.
  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pants-backend-kustomize-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

pants_backend_kustomize-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pants-backend-kustomize-0.1.0.tar.gz.

File metadata

  • Download URL: pants-backend-kustomize-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for pants-backend-kustomize-0.1.0.tar.gz
Algorithm Hash digest
SHA256 92461762191cc4e08b30a54d5bc8f220cb258a6ee2180a15caa3ac5c9f3547bc
MD5 fb9b574cd418f13263cc79034b027d3d
BLAKE2b-256 43816dade3f5ad269cb1a268b5bcbf3436362f312d527fb6f9ca3556747a3490

See more details on using hashes here.

Provenance

File details

Details for the file pants_backend_kustomize-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pants_backend_kustomize-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.12.0 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.10

File hashes

Hashes for pants_backend_kustomize-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f9a98dc44605384206526bb34aac29a87f81ab038f26b1bdd97646f35cf62d1
MD5 584444dba3e2f4532870efc4ba7e174f
BLAKE2b-256 6e21028613d315025302becbbb68c9802ca1ba7f96330720b234f30d33c28222

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page