kubevalidator
kubevalidator copied to clipboard
Line numbers
Annotations are currently placed on line 1 of each file when they should ideally be placed on or near the line that caused the validation failure. Failures have information about the field that caused the error, which will useful in the course of finding that line number.
Unfortunately, https://github.com/go-yaml/yaml/issues/108.
Possible approaches:
- https://godoc.org/gopkg.in/yaml.v3 / https://blog.ubuntu.com/2019/04/05/api-v3-of-the-yaml-package-for-go-is-available