Skip to content
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

Use filtered informer to watch OIDC service accounts #3719

Merged
merged 22 commits into from
May 7, 2024

Conversation

karkabbage
Copy link
Contributor

@karkabbage karkabbage commented Feb 25, 2024

Fixes #3655

Proposed Changes

  • Intial changes similar to #7527 to manage filtered accounts

Release Note


Docs

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 25, 2024
Copy link

linux-foundation-easycla bot commented Feb 25, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link

knative-prow bot commented Feb 25, 2024

Welcome @karkabbage! It looks like this is your first PR to knative-extensions/eventing-kafka-broker 🎉

@knative-prow knative-prow bot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 25, 2024
Copy link

knative-prow bot commented Feb 25, 2024

Hi @karkabbage. Thanks for your PR.

I'm waiting for a knative-extensions member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@karkabbage karkabbage changed the title [WIP]Changes in pkg/reconciler/trigger based on #7527 [WIP] filtered informer to watch OIDC service accounts #3655 Feb 25, 2024
@creydr
Copy link
Contributor

creydr commented Feb 26, 2024

/cc

@knative-prow knative-prow bot requested a review from creydr February 26, 2024 07:42
Copy link

codecov bot commented Feb 26, 2024

Codecov Report

Attention: Patch coverage is 48.71795% with 20 lines in your changes are missing coverage. Please review.

Project coverage is 53.93%. Comparing base (aacc057) to head (73f4b86).
Report is 11 commits behind head on main.

Files Patch % Lines
...ol-plane/pkg/reconciler/trigger/v2/controllerv2.go 12.50% 13 Missing and 1 partial ⚠️
control-plane/pkg/reconciler/trigger/controller.go 68.42% 3 Missing and 3 partials ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##               main    #3719       +/-   ##
=============================================
- Coverage     73.70%   53.93%   -19.78%     
+ Complexity      875      850       -25     
=============================================
  Files           100      343      +243     
  Lines          3419    18219    +14800     
  Branches        292      291        -1     
=============================================
+ Hits           2520     9826     +7306     
- Misses          723     7458     +6735     
- Partials        176      935      +759     
Flag Coverage Δ
java-unittests 72.61% <ø> (-1.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@creydr
Copy link
Contributor

creydr commented Feb 29, 2024

Hey @karkabbage,
Thanks for your work so far. Can you rebase this PR to solve the merge conflicts? Also it seems you're missing to run ./hack/update-codegen.sh or ./hack/update-deps.sh to vendor the newly imported packages.

@knative-prow-robot knative-prow-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 29, 2024
@knative-prow-robot knative-prow-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 8, 2024
@karkabbage
Copy link
Contributor Author

karkabbage commented Mar 8, 2024

Hi @creydr ,
I've rebased the merge conflicts and ran codegen, but no new files were made.
Is this expected ? I attempted using - "knative.dev/pkg/client/injection/kube/informers/factory/filtered/fake"
in controller_test.go
Thanks!
Update: I got files

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 8, 2024
@Leo6Leo
Copy link
Contributor

Leo6Leo commented Mar 8, 2024

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 8, 2024
@karkabbage
Copy link
Contributor Author

/retest

@karkabbage
Copy link
Contributor Author

@knative-prow-robot /retest

@karkabbage
Copy link
Contributor Author

/retest

@creydr
Copy link
Contributor

creydr commented Apr 30, 2024

@karkabbage @yijie-04 do you need any more information or help besides #3719 (comment)?

@knative-prow knative-prow bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 2, 2024
@creydr
Copy link
Contributor

creydr commented May 2, 2024

/test upgrade-tests

@creydr creydr changed the title [WIP] filtered informer to watch OIDC service accounts #3655 Use filtered informer to watch OIDC service accounts May 2, 2024
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 2, 2024
@creydr creydr requested a review from pierDipi May 2, 2024 15:59
@creydr
Copy link
Contributor

creydr commented May 2, 2024

@pierDipi @Cali0707 @Leo6Leo as I commited to this PR: could you PTAL?

@Cali0707
Copy link
Member

Cali0707 commented May 2, 2024

/retest-required

@@ -101,7 +99,7 @@ func hasNoKafkaBrokerFinalizer() func(ctx context.Context, t feature.T) {
time.Sleep(time.Second * 20) // "eventually"
tr := triggerfeatures.GetTrigger(ctx, t)
for _, f := range tr.Finalizers {
require.NotEqual(t, f, triggerreconciler.FinalizerName, "%+v", tr)
require.NotEqual(t, f, "kafka.triggers.eventing.knative.dev", "%+v", tr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's the need for this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full context is here: #3719 (comment).
TL;DR; is, that this lead to an import an then registered an informer, which lead to a test failure in this case.

Co-authored-by: Calum Murray <cmurray@redhat.com>
@creydr
Copy link
Contributor

creydr commented May 3, 2024

/test reconciler-tests

1 similar comment
@creydr
Copy link
Contributor

creydr commented May 3, 2024

/test reconciler-tests

@creydr creydr requested a review from Cali0707 May 6, 2024 07:00
Copy link
Member

@Cali0707 Cali0707 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label May 6, 2024
Copy link

knative-prow bot commented May 6, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Cali0707, karkabbage

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 6, 2024
@Cali0707
Copy link
Member

Cali0707 commented May 6, 2024

/retest-required

@creydr
Copy link
Contributor

creydr commented May 6, 2024

wait.go:200: test-mrqmxoln/containersource-eoaibzgi condition is {"type":"Ready","status":"False","lastTransitionTime":"2024-05-06T15:08:59Z","reason":"TrustBundlePropagation","message":"failed to create ConfigMap test-mrqmxoln/knative-eventing-bundlekne-bundle: configmaps \"knative-eventing-bundlekne-bundle\" already exists"}

/retest-required

@creydr
Copy link
Contributor

creydr commented May 7, 2024

/retest-required

@creydr
Copy link
Contributor

creydr commented May 7, 2024

/test integration-tests

@knative-prow knative-prow bot merged commit 6c4665c into knative-extensions:main May 7, 2024
32 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/control-plane area/test lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[control-plane]: Use filtered informer to watch OIDC service accounts
7 participants