Skip to main content

A wrapper for Kustomize and related tooling.

Project description

Kustomize Wrapper

latest-version kustomize kubeval travis-build python-support license

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 with tox)

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


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.1.0.tar.gz (53.7 MB view details)

Uploaded Source

Built Distribution

kustomize_wrapper-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file kustomize-wrapper-0.1.0.tar.gz.

File metadata

  • Download URL: kustomize-wrapper-0.1.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

Hashes for kustomize-wrapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44c8018ca21d7fe3b2d9c8a57c36f6e19ba39f6524da644d79fae0e0add665ec
MD5 3fa9d6d3e37058e7c445d62c3a6ad6c2
BLAKE2b-256 a70ace8504c3a52a608ea81002799f8fb394d45eade85207be6f3aabe7b3519f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kustomize_wrapper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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

Hashes for kustomize_wrapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1474052f54e7a1de2edd7d54f0ba8b5729a57ba74f66f5059b234f577ab685f1
MD5 a2fa96cfbeb6a2acf2643b1fb95ca43b
BLAKE2b-256 a13316789a3105490e8b3fdd9818ac954265961879d326665f8656b5cf28edd3

See more details on using hashes here.

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