-
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
Adds annotation to disable payload validation in eventlistener #1189
Conversation
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.
code looks fine.
quick bike shed on the actual flag name -- disable-payload-validation
vs enable-payload-validation
(true by default). Or even validate-payload
I think enable-payload-validation: true sounds clearer than disable-payload-validation: false
d93c377
to
ae0e5a0
Compare
The following is the coverage report on the affected files.
|
ae0e5a0
to
57d6c66
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-triggers-integration-tests |
yup keeping default value as true |
@savitaashture so do you mean to have field in |
57d6c66
to
6e66fb5
Compare
6e66fb5
to
377d75b
Compare
The following is the coverage report on the affected files.
|
This adds an annotation support tekton.dev/payload-validation for eventlistener. If it is added to el with value as false then the payload from events will not be validated and will be directly passed to interceptors. By default the payload validation is enabled. Only if annotation is defined and its value is false then it will be disabled for that particular el. Signed-off-by: Shivam Mukhade [email protected]
377d75b
to
2f6683a
Compare
The following is the coverage report on the affected files.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom 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 |
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
Thank you 👍
This adds an annotation support
tekton.dev/payload-validation
for eventlistener. If it is added to el with value as
false
thenthe payload from events will not be validated and will be directly
passed to interceptors.
By default the payload validation is enabled. Only if annotation
is defined and its value is
false
then it will be disabledfor that particular el.
Closes #1152
Signed-off-by: Shivam Mukhade [email protected]
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.
Release Notes
User can define an annotation on eventlistener
tekton.dev/payload-validation: "false"
to disable the payload validation in that event listener. By default payload validation is enabled.