Manifest Lint

Validate Kubernetes manifests with kustomize builds and resource cross-referencing.

9|3|Updated Apr 16, 2024
One-click install
npx skills add https://github.com/keiretsu-labs/kubernetes-manifests --skill manifest-lint
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Manifest Lint
Source: https://github.com/keiretsu-labs/kubernetes-manifests/tree/main/openclaw/workspaces/main/skills/manifest-lint
Command: npx skills add https://github.com/keiretsu-labs/kubernetes-manifests --skill manifest-lint

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires kustomize, yq, jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that Kubernetes manifests are syntactically correct and adhere to best practices, preventing deployment errors and improving the reliability of your infrastructure.

Core Features & Use Cases

  • Kustomize Validation: Checks if kustomize build succeeds and if all declared resources are present.
  • Resource Cross-referencing: Verifies that resource names in kustomization.yaml match references in deployment files.
  • Common Mistake Detection: Identifies issues like incorrect container names, missing imagePullPolicy, or incorrect volume mounts.
  • Use Case: Before committing changes to your Kubernetes manifests, use this Skill to perform a comprehensive check, catching potential errors early in the development cycle.

Quick Start

Run a manifest lint check on the kustomization directory.

Frequently Asked Questions about Manifest Lint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Kubernetes manifests before deployment?

You can validate Kubernetes manifests by running kustomize builds, cross-referencing resources, and checking container names and volume mounts. This skill performs those pre-deployment checks to catch configuration errors early.

What does a kustomize build validation check for in Kubernetes manifests?

Kustomize build validation checks if the build succeeds and verifies that all declared resources in kustomization.yaml are present. It cross-references resource names to catch mismatches in deployment files.

Do I need kustomize, yq, and jq installed to lint Kubernetes manifests?

Yes, you need kustomize, yq, and jq installed. This skill requires these dependencies to parse and validate the YAML and JSON structures within your Kubernetes manifest files.

What is the best way to audit Kubernetes manifest hygiene?

The best way to audit manifest hygiene is to check for common mistakes like incorrect container names, missing imagePullPolicy, and incorrect volume mounts. This identifies issues before they cause deployment failures.

Can I use this skill to verify volume mounts in Kubernetes configurations?

Yes, you can use this skill to verify volume mounts. It checks kustomize builds and cross-references resources to identify incorrect volume mounts and other common configuration mistakes.

Why does my kustomization.yaml fail resource cross-referencing checks?

Resource cross-referencing fails when resource names declared in kustomization.yaml do not match the references used in your deployment files. This skill verifies these names to prevent deployment errors.