airshipctl/krm-functions/kubeval-validator
siraj.yasin 5db0074174 Fix for Templater latest image
* Created one DockerFile per plugin.
* Makefile in each plugins directory is updated to work
  independently.

Change-Id: I0459da2e06174d6f704763e3d1097b22dea31657
Closes: #522
2021-04-28 13:04:19 +00:00
..
image Fix for Templater latest image 2021-04-28 13:04:19 +00:00
local-resource Add KRM function to validate site documents 2021-04-22 11:13:40 -05:00
Dockerfile Fix for Templater latest image 2021-04-28 13:04:19 +00:00
Makefile Add KRM function to validate site documents 2021-04-22 11:13:40 -05:00
README.md Add KRM function to validate site documents 2021-04-22 11:13:40 -05:00

Validation

This is a KRM function which implementing a validation function against kubeval.

Function implementation

The function is implemented as an image, and built using make image.

Function configuration

A number of settings can be modified for kubeval in the struct Spec. See the Config struct definition in main.go for documentation.

Function invocation

The function by running validate command via airshipctl:

airshipctl phase validate <phase_name>

This exists non-zero if kubeval detects an invalid Resource.