-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation Tool to follow the Catalog Structure #413
Comments
We would need to ensure that the PR submissions are manually validated against the [TEP-003] until we have the [validation tool] added to CI. Signed-off-by: Sunil Thaha <[email protected]> --- [TEP-003]: https://github.com/tektoncd/community/blob/master/teps/0003-tekton-catalog-organization.md [validation tool]: tektoncd#413
We would need to ensure that the PR submissions are manually validated against the [TEP-003] until we have the [validation tool] added to CI. Signed-off-by: Sunil Thaha <[email protected]> --- [TEP-003]: https://github.com/tektoncd/community/blob/master/teps/0003-tekton-catalog-organization.md [validation tool]: tektoncd#413
We would need to ensure that the PR submissions are manually validated against the [TEP-003] until we have the [validation tool] added to CI. Signed-off-by: Sunil Thaha <[email protected]> --- [TEP-003]: https://github.com/tektoncd/community/blob/master/teps/0003-tekton-catalog-organization.md [validation tool]: tektoncd#413
We would need to ensure that the PR submissions are manually validated against the [TEP-003] until we have the [validation tool] added to CI. Signed-off-by: Sunil Thaha <[email protected]> --- [TEP-003]: https://github.com/tektoncd/community/blob/master/teps/0003-tekton-catalog-organization.md [validation tool]: #413
We would need to ensure that the PR submissions are manually validated against the [TEP-003] until we have the [validation tool] added to CI. Signed-off-by: Sunil Thaha <[email protected]> --- [TEP-003]: https://github.com/tektoncd/community/blob/master/teps/0003-tekton-catalog-organization.md [validation tool]: tektoncd#413
@PuneetPunamiya Regarding 1.
Based on this list check if for each version a task exists ( ./task/<dir>/<version>/<dir>.yml ) and if a README exists (./task/<dir>/<version>/README.md ). Would you want to see more enforced?
I would do this using a bash if/else like this if [ ! -f "$FILE" ]; then
echo "$FILE does not exist."
fi If this is fine, I would be happy to take this task. Regarding 2. Something like ruby -ryaml -rjson -e 'puts JSON.pretty_generate(YAML.load(ARGF))' < test.yml > test.json && ajv validate -s ./schema.json -d test.json; rm test.json The solution would not be nice but a quick try to enforce some kind of schema on the yaml files. |
/cc @sthaha who also started to work on this I think 😉 |
Expected Behavior
resource name
and thedirectory name
should matchminimum pipeline version
supported by the resourcetags
associated with the resourcedisplayName
of the resourceActual Behavior
The text was updated successfully, but these errors were encountered: