catlin
catlin copied to clipboard
Separate linting resources and the catalog "layout"
As of today, lintking a tekton resource in a yaml file, not in a catalog, will fail saying the resource path is wrong.
FILE: ../tmp/task/go-ko-image/go-ko-image.yaml
ERROR: Resource path is invalid; expected path: task/go-ko-image/0.2.1/go-ko-image.yaml
It shouldn't be the case. We should be able to validate the layout of a catalog (task/{name}/{version}/…) and the content of the file independently.
It could be 2 different commands catlin validate-resource path/to/file and catlin validate-catalog path/to/catalog.