Kustomize Wrapper 
A Python wrapper for the Kubernetes Kustomize tool and related tooling.
- More readable, more concise one-liners
- Easy linting (with integrated
kubeval) - Integrates into your Python tooling (e.g. use it with
tox) - Automatic download of external Go binaries
- Cross-platform (installs matching Go binaries on Linux, macOS, Windows)
Installation
python3 -m pip install kustomize-wrapper
Why should I use this tool
Forget about several kustomize calls, piping your calls into kubeval
or kubectl apply commands. Using Kustomize is now even more pleasant!
Instead of:
lint:
script:
- kustomize build deployment/overlays/development | kubeval --strict
- kustomize build deployment/overlays/integration | kubeval --strict
- kustomize build deployment/overlays/production | kubeval --strict
You can now write:
lint:
script:
- kustomize lint deployment/overlays/*
Instead of:
production:
script:
- cd deployment/base
- kustomize edit set image IMAGE="foobar/application:${CI_COMMIT_SHA}"
- cd ../..
- kustomize build deployment/overlays/production | kubectl apply -f -
You can now write:
production:
script:
- kustomize apply deployment/overlays/production --edit deployment/base \
set image IMAGE="foobar/application:${CI_COMMIT_SHA}"
Usage
kustomize --help
Philosophy:
- Build automatically
- Kustomize commands become CLI options
- Kubeval options become CLI options of
lintcommand
Python tox
Add kustomize-wrapper to your tox.ini, then Tox takes care of downloading:
[testenv:kubernetes]
description = Validate Kubernetes manifests
deps = kustomize-wrapper
commands =
kustomize lint {posargs:--ignore-missing-schemas --fail-fast \
deployment/application/overlays/development \
deployment/application/overlays/integration \
deployment/application/overlays/production \
}
Allows you to override arguments: (Use -- in case you add command line options)
tox -e kubernetes -- --fail-fast deployment/application/base
Metadata
Release files for kustomize-wrapper 0.16.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| kustomize-wrapper-0.16.0.tar.gz | 21.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kustomize_wrapper-0.16.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.7 kB
Release files / kustomize-wrapper-0.16.0.tar.gz
| Download URL | kustomize-wrapper-0.16.0.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4fc8551a4dc89540e065e27e9524af78c894d4e7e1c1a02f5809f99ec941a07
|
|
BLAKE2b-256 checksum How to use checksums |
bf2085cbd7e8ec66c79a3a2b3b5ded74385c32a7d9fd0a0c85a70511d7c286ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / kustomize_wrapper-0.16.0-py3-none-any.whl
| Download URL | kustomize_wrapper-0.16.0-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a735d7b936149e26c6e1adeb4b7456b4cbffa31dc02571f8d6c4332b3a579e41
|
|
BLAKE2b-256 checksum How to use checksums |
9890b01e2133257f0930b14cd7260afc7eac8d39f7cd4878e0b4936c74e236bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for kustomize-wrapper 0.16.0
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.