-
Notifications
You must be signed in to change notification settings - Fork 420
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
Add String only Params for Triggers #532
Conversation
34487b5
to
aef1991
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-triggers-go-coverage |
The following is the coverage report on the affected files.
|
/hold Integration tests are failing due to go modules upgrade changing how vendor licenses are stored. Fixing that in a different PR |
We can cancel the hold once #559 is merged |
The following is the coverage report on the affected files.
|
/hold cancel |
The following is the coverage report on the affected files.
|
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.
Thanks @dibyom, looks great! Just a few copy & paste things to address 🙂
Instead of using Pipeline's Param types, just use Triggers' own Param type. Since we do not use arrayValues for Params in Bindings or Templates, this Param only supports string values.
We were overriding the UID() function to always return "abcde" in a test.So, if we ran tests multiple times (e.g. -count=10), any test that relied on UID() would fail from the second time onwards
The following is the coverage report on the affected files.
|
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ncskier 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 |
…y-changes Remove apimachinery patch changes
Changes
This PR is part of #415 and has
343 commits:Remove pipeline clientsets from the Triggers controller/reconciler. They were not being used anywhere.
Create Param and ParamSpec types for Triggers instead of reusing the one from Pipeline. The Triggers version only supports string only params.
Fixes a test that was changing a global variable meaning the running tests more than once (-count=2) would always fail.
Update third_party/vendor to make build tests pass(moved to Fix license file locations for ko #559)There should be no user facing changes from this refactoring. There will be a follow up PR to get rid of the remaining uses of Pipelines (in webhook headers and tests)
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.