A wrapper for Kustomize and related tooling.
Project description
Kustomize Wrapper
A wrapper for the Kubernetes Kustomize tool and related tooling.
- More readable one-liners
- Automatic linting (with integrated
kubeval
) - Easy installation with
pip
(e.g. in combination withtox
)
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 deployment/overlays/* --lint strict
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 deployment/overlays/production
--edit deployment/base set image IMAGE="foobar/application:${CI_COMMIT_SHA}"
--apply
Usage
kustomize --help
Philosophy:
- Build and lint by default
- Kustomize commands become CLI options
- Kubeval options become values of
--lint
option
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kustomize-wrapper-0.2.0.tar.gz
(53.7 MB
view details)
Built Distribution
File details
Details for the file kustomize-wrapper-0.2.0.tar.gz
.
File metadata
- Download URL: kustomize-wrapper-0.2.0.tar.gz
- Upload date:
- Size: 53.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e445582a4974e0143a7eda1c8b8e2f2d08cab9af89d3281bf812126ff32a19cc |
|
MD5 | 2db3c9f28f026b73a3422eb306ec9c97 |
|
BLAKE2b-256 | cd23b9c88516e338a4dace634969aee35c3a1e6281e91a5cdb6dfe3c9135dc90 |
Provenance
File details
Details for the file kustomize_wrapper-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: kustomize_wrapper-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a2257ccded26218aa47e5306ec7d4995f02d588171af877b9203fdb4a81d4c0 |
|
MD5 | 8711348daa739f5f1dc52a7b1ffdf772 |
|
BLAKE2b-256 | eb77e825968616098132a4c4f43fee4f5d254c476b16d3bafb3f4b0917b0d85c |