Skip to main content

Kubernetes manifest linter using JSON Schema

Project description

Kubernetes Manifest Linter

Build Status PyPI PyPI - Python Version License

Validate Kubernetes YAML manifests against JSON schema. It will use the Kubernetes v1.17 schemas for validation by default.

Usage:

pip3 install kube-manifest-lint
kube-manifest-lint my-deployment.yaml

Pre Commit Hook

You can use this tool as a pre-commit in your git repository. Example .pre-commit-config.yaml:

repos:
  - repo: https://codeberg.org/hjacobs/kube-manifest-lint
    rev: "0.2.0"
    hooks:
      - id: kube-manifest-lint

Exit Codes

  • 1: file is not a Kubernetes manifests
  • 2: schema for apiVersion/kind was not found
  • 4: schema is deprecated (e.g. using "extensions/v1beta1" instead of "apps/v1")
  • 8: schema validation failed

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

kube-manifest-lint-0.2.0.tar.gz (329.1 kB view details)

Uploaded Source

Built Distribution

kube_manifest_lint-0.2.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file kube-manifest-lint-0.2.0.tar.gz.

File metadata

  • Download URL: kube-manifest-lint-0.2.0.tar.gz
  • Upload date:
  • Size: 329.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.1 Linux/4.15.0-74-generic

File hashes

Hashes for kube-manifest-lint-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6ec63895ece9d19b6dfadca7d2d4ade052af93ca65da1d55ea61a8eaa6acbc9a
MD5 837cd8cb2e06ebb799ce5b9422edc1c0
BLAKE2b-256 572a2c2a422bf7732005e7dbe96e18ef694547ec818eb866b0c94c63257f3d15

See more details on using hashes here.

File details

Details for the file kube_manifest_lint-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kube_manifest_lint-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bfa5b7f81e2817562973550447adda1175913238f4603508c8d8e142501d5d0e
MD5 6ccc68483ccd4485f576a022fe7b4f4d
BLAKE2b-256 fa963a44f446c1f0da9a8752d060f6eb43564da2f2aa1d916ddcff25e5821758

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