Skip to main content

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

Release files for kube-manifest-lint 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kube-manifest-lint 0.2.0
File Size Uploaded
kube-manifest-lint-0.2.0.tar.gz 329.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kube-manifest-lint 0.2.0
File Interpreter ABI Platform
kube_manifest_lint-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.4 MB

Release files / kube-manifest-lint-0.2.0.tar.gz

Download URL kube-manifest-lint-0.2.0.tar.gz
Size 329.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6ec63895ece9d19b6dfadca7d2d4ade052af93ca65da1d55ea61a8eaa6acbc9a
BLAKE2b-256 checksum
How to use checksums
572a2c2a422bf7732005e7dbe96e18ef694547ec818eb866b0c94c63257f3d15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.1 Linux/4.15.0-74-generic

Release files / kube_manifest_lint-0.2.0-py3-none-any.whl

Download URL kube_manifest_lint-0.2.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
bfa5b7f81e2817562973550447adda1175913238f4603508c8d8e142501d5d0e
BLAKE2b-256 checksum
How to use checksums
fa963a44f446c1f0da9a8752d060f6eb43564da2f2aa1d916ddcff25e5821758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.8.1 Linux/4.15.0-74-generic

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page