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.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pants-backend-kustomize-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b51a5410fff2b45d9b03a6dd4c17c70d730f3ebe3824942394c3dc59f1c00aa7
MD5 5ce15af40b4a5f2ac54fa32020ffce81
BLAKE2b-256 c44419099bb86b6c7342bd25634685ebdb03d847163b5e617395edcf253fc820

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pants_backend_kustomize-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50adae9db382af59944fd22c74db3702f6a8427b8aabd37bfa615e5c4689c423
MD5 cb58a1f1ca5b71441a43df104fb8e131
BLAKE2b-256 d69a52e35991daa60d6fb4687a4777a260de5b6505bca648a77bccb021a0ae90

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