-
Notifications
You must be signed in to change notification settings - Fork 424
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 nodeSelector and replicas to eventlistener #625
add nodeSelector and replicas to eventlistener #625
Conversation
Hi @GwonsooLee. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
The following is the coverage report on the affected files.
|
@dibyom Is the reason of failure related to the nodeSelector..? I added nodeSelector to test file with |
Doesn't look like...looks like some test has a data race |
@@ -57,11 +57,20 @@ type EventListenerSpec struct { | |||
ServiceAccountName string `json:"serviceAccountName"` | |||
Triggers []EventListenerTrigger `json:"triggers"` | |||
ServiceType corev1.ServiceType `json:"serviceType,omitempty"` | |||
Replicas int32 `json:"replicas"` |
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.
Should Replica be part of PodTemplate? Maybe in future have a ducktype like PodSpecable mentioned here:
#505 (comment)
Of course, we want to give only limited set of capability even if we do ducktype.
@dibyom
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.
So, my understanding is that for PodTemplate or PodSpecable, the object can contain fields from a PodSpec
: https://godoc.org/k8s.io/api/core/v1#PodSpec
replicas
are part of the DeploymentSpec -> looking through the fields it doesn't seems like we'd want to support customizing any fields besides replicas
. So, maybe we just leave replicas
as part of the EL spec (maybe we can call it deploymentReplicas
?) What do you think @khrm ?
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.
I'll add this to tomorrow's WG agenda. Unless there are objections, I feel inclined to keep the current field naming!
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
/test pull-tekton-triggers-integration-tests |
d9177ca
to
e129b28
Compare
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.
I think syncing with Master would resolve that test failure. We solve that Data Race here: #631
/test pull-tekton-triggers-integration-tests |
1 similar comment
/test pull-tekton-triggers-integration-tests |
/kind feature |
// Resizes cache, returning number evicted | ||
Resize(int) int | ||
// Resizes cache, returning number evicted | ||
Resize(int) int |
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.
👀
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.
I think this is because I ran one of the scripts in ./hack
directory...
Thanks for adding this @GwonsooLee
|
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.
Could you add a Release Notes
section to this PR description ? Very helpful when we are doing a release!
for an example, see: #591
metadata: | ||
name: listener-podTemplate | ||
spec: | ||
serviceAccountName: tekton-triggers-example-sa |
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 for adding examples, can you also update the docs to mention the new fields?
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.
I added replicas
and podTemplate.nodeSelector
to docs. :)
e129b28
to
205376f
Compare
The following is the coverage report on the affected files.
|
Thanks for finding the error! I fixed it :) |
In general, for go e2e tests, you can run something like In addition, we have some tests, that apply our YAML examples to make sure they are valid: I think you should be able to run the |
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.
[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.
Looks good to me :)
/lgtm |
Changes
Add nodeSelector and replicas feature to eventListener. With this, user could schedule eventListener pod to the node with specific label. Also, if needed, user could specify the number of replicas in yaml file. Previously I scaled pod by editing after deployment ( If other possible way to scale which I might not know..., please let me know!! 😄 )
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