airshipctl/krm-functions/kubeval-validator
2021-06-15 19:39:59 +00:00
..
certs Support proxy envs for kubeval-validator krm function 2021-05-21 15:53:55 -05:00
image Embed validation cfg into phase and plan definition 2021-06-11 15:37:38 +00:00
local-resource Embed validation cfg into phase and plan definition 2021-06-11 15:37:38 +00:00
Dockerfile Merge "Use airshipit/alpine in krm-functions" 2021-06-15 19:39:59 +00:00
Makefile Add KRM function to validate site documents 2021-04-22 11:13:40 -05:00
README.md Embed validation cfg into phase and plan definition 2021-06-11 15:37:38 +00: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 Spec struct definition in main.go for the documentation.

Function invocation

The function invokes by running validate command via airshipctl:

airshipctl plan validate <plan_name>
airshipctl phase validate <phase_name>

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