-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Clean up validation for task and pipeline refs #5046
Conversation
The following is the coverage report on the affected files.
|
/approve |
thanks @lbernick I was just looking at the I am looking at the best practices of how to refactor this. If we desire to go with a single flat API package, it will be cleaner to have:
We can follow this pattern for any type including thoughts? |
Refactoring is bringing down the coverage, please address this 🙏 |
The following is the coverage report on the affected files.
|
Not sure what is going on here: tests are failing with
but they pass locally? /retest |
The following is the coverage report on the affected files.
|
/retest |
The following is the coverage report on the affected files.
|
The following is the coverage report on the affected files.
|
@pritidesai I've brought up the coverage and moved taskrefs + pipelinerefs into _types.go files. (No need right now for _defaults.go or _types_test.go files IMO) |
/retest |
1 similar comment
/retest |
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abayer, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9f2e483
to
b3b623a
Compare
The following is the coverage report on the affected files.
|
This commit creates separate files for testing validation of Task and Pipeline references, and moves test cases related to this validation into those files. It also updates the error message for when a bundle is included in a reference without the "enable-tekton-oci-bundles" flag set to "true" to instruct the user to set that flag. In addition, it updates the error message for when resolvers are set without the "enable-api-fields" flag set to "alpha" to instruct the user to set that flag.
@@ -0,0 +1,189 @@ | |||
/* | |||
Copyright 2019 The Tekton Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: s/2019/2022/
@@ -0,0 +1,200 @@ | |||
/* | |||
Copyright 2020 The Tekton Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: s/2020/2022/
thanks a bunch @lbernick 👍 /lgtm |
The following is the coverage report on the affected files.
|
Changes
This commit creates separate files for testing validation of Task and Pipeline
references, and moves test cases related to this validation into those files.
It also updates the error message for when a bundle is included in a reference
without the "enable-tekton-oci-bundles" flag set to "true" to instruct the user
to set that flag. In addition, it updates the error message for when resolvers
are set without the "enable-api-fields" flag set to "alpha" to instruct the user
to set that flag.
/kind cleanup
Submitter Checklist
As the author of this PR, please check off the items in this checklist:
functionality, content, code)
(if there are no user facing changes, use release note "NONE")
Release Notes