-
Notifications
You must be signed in to change notification settings - Fork 592
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
support: nodeselector in apiserversource #7584
Conversation
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Hi @sadath-12. Thanks for your PR. I'm waiting for a knative 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. |
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 working on this @sadath-12
/ok-to-test
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #7584 +/- ##
==========================================
- Coverage 74.56% 74.44% -0.12%
==========================================
Files 262 262
Lines 14951 15077 +126
==========================================
+ Hits 11148 11224 +76
- Misses 3215 3247 +32
- Partials 588 606 +18 ☔ View full report in Codecov by Sentry. |
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Thank you @Cali0707 for helping me improve this |
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.
@sadath-12 can you add some tests in pkg/reconciler/apiserversource/apiserversource_test.go
to test that the apiserversource reconciles properly when the node selectors are set?
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
Done thanks @Cali0707 |
other changes are just some formatting |
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
thanks @Cali0707 . |
@Cali0707 the failing tests points to timeout problem . which I'm quite sure it might not be related my because I checked with reconciler in the tests I worked and unless nodeselector is passed anywhere there should not be any behaviour or events change anywhere |
@sadath-12 can you fix your formatting? |
Also, I'm curious. Do you have any ideas on how to integration test this once it is merged? Ideally we won't just be relying on a few unit tests for this feature |
I can run gofumpt and whole file will be formatted but as you reviewed last time it would become difficult to review 🙂 |
I haven't tried writing e2e tests before but I think all we have to do create an apiServerSource_test.go file under test/e2e/ and create some configs and store it in featureFlags through context and then deploy a normal ApiServerSource with nodeSelector in the flag and then I would fetch the pod of that name and check through its spec the node details in which its deployed. I think its a good opportunity to start adding some ApiServerSource related e2e and cover some things . I would try to implement that after this pr is merged |
Just use gofmt instead of gofumpt, gofumpt is very opinionated and can lead to large changes (as we had before). gofmt will just fix the actual formatting problems we are seeing in CI (and is also what we use to check formatting problems in Knative) |
Thank you @Cali0707 |
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
@sadath-12 I opened an issue here: #7615 so that we could track the work to add a test and don't forget about it. |
Besides that, it looks like one of the code style jobs is still failing. Would you be able to look into that? |
Signed-off-by: sadath-12 <sadathsadu2002@gmail.com>
thank you @Cali0707 I assigned it to me |
seems to be resolved now 🙂 |
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
/approve
@sadath-12 can you add a release note to this PR so that this makes it into the release notes for the next release? You should be able to edit your original PR description to include it.
/hold
We can unhold this once we have release notes :)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, sadath-12 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 |
Added @Cali0707 |
/test upgrade-tests |
Fixes #7360
Proposed Changes
Users can now configure nodeSelector via
config-features
by adding key-value pair in the formatapiserversources.nodeselector.<key>: <value>
Pre-review Checklist
Release Note
Docs