Open allenporter opened 1 year ago
kubeconform also looks like a way to do this: https://github.com/onedr0p/home-ops/blob/main/.github/scripts/kubeconform.sh
More kubeconform examples: https://github.com/fluxcd/flux2-kustomize-helm-example/blob/main/scripts/validate.sh
Incorporate the library https://github.com/willthames/kubernetes-validate to run against the built objects and ensure they are valid k8s objects against the schema.
This likely makes sense for the
test
command.This may require specifying a different k8s version to validate against, and can allow users to validate in CI