Use for validating K8s configs during CI
10K+
Basically, this contains a couple of tools for validating Kubernetes config files.
For now it contains:
I am using Gitlab, I have a block like:
stages:
- validation
- more-things
linting:
image: chriscowley/kubernetes-validator:latest
stage: validation
script:
- for file in $(find ${CI_PROJECT_DIR} -iname *.yml; do yamllint -d relaxed $file; done
validate_config:
image: chriscowley/kubernetes-validator:latest
stage: validate
script:
- for file in $(find ${CI_PROJECT_DIR} -iname *.yml; do kubeval $file; done
unit_tests:
image: chriscowley/kubernetes-validator:latest
stage: validate
script:
- for file in $(find ${CI_PROJECT_DIR} -iname *.yml; do kubetest --verbose $file; done
Content type
Image
Digest
Size
297.6 MB
Last updated
over 6 years ago
docker pull chriscowley/kubernetes-validator