Skip to content

[release-1.13]: Watch only our own OIDC-related secrets (#8070)#8072

Merged
knative-prow[bot] merged 5 commits intoknative:release-1.13from
Cali0707:backport-filter-oidc-informer-release-1.13
Jul 9, 2024
Merged

[release-1.13]: Watch only our own OIDC-related secrets (#8070)#8072
knative-prow[bot] merged 5 commits intoknative:release-1.13from
Cali0707:backport-filter-oidc-informer-release-1.13

Conversation

@Cali0707
Copy link
Copy Markdown
Member

@Cali0707 Cali0707 commented Jul 4, 2024

This is a backport of #8070 to ensure that we use a filtered informer for our own OIDC-related secrets to reduce memory usage.

Filter OIDC secrets

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow knative-prow bot requested review from matzew and pierDipi July 4, 2024 18:08
@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 4, 2024
@Cali0707
Copy link
Copy Markdown
Member Author

Cali0707 commented Jul 4, 2024

/cc @pierDipi @matzew @Leo6Leo

@knative-prow knative-prow bot requested a review from Leo6Leo July 4, 2024 18:09
Signed-off-by: Calum Murray <cmurray@redhat.com>
@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 Jul 4, 2024
Cali0707 added 2 commits July 4, 2024 14:44
Signed-off-by: Calum Murray <cmurray@redhat.com>
Copy link
Copy Markdown
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

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

knative-prow bot commented Jul 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

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

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@pierDipi
Copy link
Copy Markdown
Member

pierDipi commented Jul 5, 2024

/test reconciler-tests

1 similar comment
@matzew
Copy link
Copy Markdown
Member

matzew commented Jul 5, 2024

/test reconciler-tests

@pierDipi
Copy link
Copy Markdown
Member

pierDipi commented Jul 5, 2024

/retest

@pierDipi
Copy link
Copy Markdown
Member

pierDipi commented Jul 5, 2024

/test reconciler-tests

@Cali0707
Copy link
Copy Markdown
Member Author

Cali0707 commented Jul 5, 2024

    wait.go:200: test-sipcyxms/containersource-onquhsez condition is {"type":"Ready","status":"False","lastTransitionTime":"2024-07-05T13:50:38Z","reason":"Unable to resolve service account for OIDC authentication","message":"could not create OIDC service account test-sipcyxms/containersource-onquhsez-sinkbinding for SinkBinding: serviceaccounts \"containersource-onquhsez-sinkbi29a177f791667d85035dc5a99e4605f5\" already exists"}

Looks like a real failure, will debug...

@knative-prow knative-prow bot removed the lgtm Indicates that a PR is ready to be merged. label Jul 5, 2024
@Cali0707
Copy link
Copy Markdown
Member Author

Cali0707 commented Jul 5, 2024

/cc @matzew @Leo6Leo

Could one of you recheck?

Signed-off-by: Calum Murray <cmurray@redhat.com>
@Cali0707 Cali0707 force-pushed the backport-filter-oidc-informer-release-1.13 branch from 015bce0 to 86da06c Compare July 5, 2024 20:54
@matzew
Copy link
Copy Markdown
Member

matzew commented Jul 8, 2024

/test reconciler-tests

namespaceInformer := namespace.Get(ctx)
serviceaccountInformer := serviceaccountinformer.Get(ctx)
secretInformer := secretinformer.Get(ctx)
oidcServiceaccountInformer := serviceaccountinformer.Get(ctx)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

did we just rename it for a better name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah the name was changed later, so when I did the cherry-pick it seems to have included that as well

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ok, I see is now same name as on main

@Leo6Leo
Copy link
Copy Markdown
Member

Leo6Leo commented Jul 8, 2024

/test reconciler-tests

@Leo6Leo
Copy link
Copy Markdown
Member

Leo6Leo commented Jul 9, 2024

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jul 9, 2024
@knative-prow knative-prow bot merged commit 3c03a23 into knative:release-1.13 Jul 9, 2024
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. lgtm Indicates that a PR is ready to be merged. 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.

4 participants