-
Notifications
You must be signed in to change notification settings - Fork 600
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
Added EventPolicy Webhook #8091
Conversation
Signed-off-by: Dharmjit Singh <dharmjit.bti@gmail.com>
Hi @dharmjit. 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-sigs/prow repository. |
/ok-to-test |
…eate or spec updates
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8091 +/- ##
==========================================
+ Coverage 67.80% 67.87% +0.07%
==========================================
Files 367 368 +1
Lines 17373 17554 +181
==========================================
+ Hits 11779 11915 +136
- Misses 4859 4894 +35
- Partials 735 745 +10 ☔ View full report in Codecov by Sentry. |
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 the PR @dharmjit !
I left 2 comments, PTAL and lmk if you have any questions!
@@ -576,6 +577,9 @@ func TestReconcile(t *testing.T) { | |||
table.Test(t, MakeFactory(func(ctx context.Context, listers *Listers, cmw configmap.Watcher) controller.Reconciler { | |||
ctx = channelable.WithDuck(ctx) | |||
ctx = v1addr.WithDuck(ctx) | |||
ctx = feature.ToContext(ctx, feature.Flags{ |
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.
Here you are trying to turn on OIDC for all the tests. Should we try to use the similar pattern that is used here in broker?
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.
@Leo6Leo I think currently all test cases are written assuming that the oidc-authentication
feature is enabled. We could refactor this if we wanted to add tests with oidc-authentication
feature disabled.
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.
@Leo6Leo Any inputs on 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.
I think not all the test cases here are being assumed to run with oidc-authentication
feature is enabled. For example here
WithChannelEventPoliciesReadyBecauseOIDCDisabled()), |
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.
Yes, following up on what @Leo6Leo said, we generally test many different configurations in these unit tests. In this scenario that means both with OIDC enabled and without OIDC enabled
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 the individual test cases in the newer commit. PTAL.
Signed-off-by: Dharmjit Singh <dharmjit.bti@gmail.com>
Signed-off-by: Dharmjit Singh <dharmjit.bti@gmail.com>
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, dharmjit 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 |
Fixes #7972
Proposed Changes
Release Note