-
Notifications
You must be signed in to change notification settings - Fork 417
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 enable/disable option to set events for EventListener in controller.yaml #1300
Conversation
The following is the coverage report on the affected files.
|
d4f5e30
to
cdc4c37
Compare
The following is the coverage report on the affected files.
|
cdc4c37
to
de10ba1
Compare
The following is the coverage report on the affected files.
|
yes! |
[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 |
cmd/controller/main.go
Outdated
image = flag.String("el-image", elresources.DefaultImage, "The container image for the EventListener Pod.") | ||
port = flag.Int("el-port", elresources.DefaultPort, "The container port for the EventListener to listen on.") | ||
setSecurityContext = flag.Bool("el-security-context", elresources.DefaultSetSecurityContext, "Add a security context to the event listener deployment.") | ||
setEventListenerEvent = flag.Bool("el-events", elresources.DefaultEventListenerEvent, "Enable events for event listener deployment.") |
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.
What do you think of making this flag a string instead of a bool? The values for now would be "enable" and "disable". We could, in the future, add values to selectively send only some events and not others.
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.
Sure i can make it as string
naive q:
We could, in the future, add values to selectively send only some events and not others.
do you mean adding values to string variable ?
and what kind of values we will expect 🤔
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.
enable, disable, only-success-events, all-events etc. things like that
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.
Ah i see 👍
Updated PR with string instead of bool
PTAL
Thank you
de10ba1
to
40e207f
Compare
The following is the coverage report on the affected files.
|
40e207f
to
1812923
Compare
The following is the coverage report on the affected files.
|
docs/events.md
Outdated
- name: tekton-triggers-controller | ||
image: "ko://github.com/tektoncd/triggers/cmd/controller" | ||
args: [ | ||
"-el-events=true", |
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.
this needs to be updated.
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.
Updated 👍
1812923
to
7484ee7
Compare
The following is the coverage report on the affected files.
|
/lgtm |
Changes
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