kots-lint is a service used for linting Replicated KOTS yaml files.
- Detecting YAML syntax errors
- Validating with Kubeval
- Utilizing OPA to lint for best practices and some special errors and warnings
$ tar cvf - path/to/folder | curl -XPOST --data-binary @- https://lint.replicated.com/v1/lint
To lint our example
$ tar cvf - example/files-to-lint | curl -XPOST --data-binary @- https://lint.replicated.com/v1/lint
The project can be run locally with
$ skaffold dev
Once skaffold runs successfully, the service can be reached at http://localhost:30082/v1/lint
Tests can be run manually with
$ make test