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.

Files for kustomize-wrapper, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size kustomize_wrapper-0.1.0-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kustomize-wrapper-0.1.0.tar.gz (53.7 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page