Sign inSign up

garethr/kubeval

By garethr

Updated over 6 years ago

kubeval is a tool for validating a Kubernetes YAML or JSON configuration file

Image
2

5M+

garethr/kubeval repository overview

Usage of kubeval requires mounting the relevant files into the container at runtime and then pointing kubeval at the directory. For more information about kubeval see the README: https://github.com/garethr/kubeval

$ docker run -it -v `pwd`/fixtures:/fixtures garethr/kubeval fixtures/*
Missing a kind key in /fixtures/blank.yaml
The document fixtures/int_or_string.yaml contains a valid Service
The document fixtures/int_or_string_false.yaml contains an invalid Deployment
--> spec.template.spec.containers.0.env.0.value: Invalid type. Expected: string, given: integer 
The document fixtures/invalid.yaml contains an invalid ReplicationController
--> spec.replicas: Invalid type. Expected: integer, given: string 
Missing a kind key in /fixtures/missing-kind.yaml 
The document fixtures/valid.json contains a valid Deployment
The document fixtures/valid.yaml contains a valid ReplicationController

Tag summary

Content type

Image

Digest

Size

9.1 MB

Last updated

over 6 years ago

docker pull garethr/kubeval