-
Notifications
You must be signed in to change notification settings - Fork 630
[release-1.13]: Watch only our own OIDC-related secrets (#8070) #8072
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
Changes from all commits
05307c7
3def75e
1c43d04
858b6a9
86da06c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ import ( | |
| "knative.dev/pkg/apis/duck" | ||
| kubeclient "knative.dev/pkg/client/injection/kube/client" | ||
| configmapinformer "knative.dev/pkg/client/injection/kube/informers/core/v1/configmap/filtered" | ||
| secretinformer "knative.dev/pkg/client/injection/kube/informers/core/v1/secret" | ||
| secretinformer "knative.dev/pkg/client/injection/kube/informers/core/v1/secret/filtered" | ||
| serviceaccountinformer "knative.dev/pkg/client/injection/kube/informers/core/v1/serviceaccount" | ||
| "knative.dev/pkg/configmap" | ||
| "knative.dev/pkg/controller" | ||
|
|
@@ -80,8 +80,8 @@ func NewController( | |
| dc := dynamicclient.Get(ctx) | ||
| psInformerFactory := podspecable.Get(ctx) | ||
| namespaceInformer := namespace.Get(ctx) | ||
| serviceaccountInformer := serviceaccountinformer.Get(ctx) | ||
| secretInformer := secretinformer.Get(ctx) | ||
| oidcServiceaccountInformer := serviceaccountinformer.Get(ctx) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did we just rename it for a better name?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, I see is now same name as on main |
||
| secretInformer := secretinformer.Get(ctx, auth.OIDCLabelSelector) | ||
| trustBundleConfigMapInformer := configmapinformer.Get(ctx, eventingtls.TrustBundleLabelSelector) | ||
| trustBundleConfigMapLister := configmapinformer.Get(ctx, eventingtls.TrustBundleLabelSelector).Lister() | ||
|
|
||
|
|
@@ -136,7 +136,7 @@ func NewController( | |
| res: sbResolver, | ||
| tracker: impl.Tracker, | ||
| kubeclient: kubeclient.Get(ctx), | ||
| serviceAccountLister: serviceaccountInformer.Lister(), | ||
| serviceAccountLister: oidcServiceaccountInformer.Lister(), | ||
| secretLister: secretInformer.Lister(), | ||
| featureStore: featureStore, | ||
| tokenProvider: auth.NewOIDCTokenProvider(ctx), | ||
|
|
@@ -155,7 +155,7 @@ func NewController( | |
| } | ||
|
|
||
| // Reconcile SinkBinding when the OIDC service account changes | ||
| serviceaccountInformer.Informer().AddEventHandler(cache.FilteringResourceEventHandler{ | ||
| oidcServiceaccountInformer.Informer().AddEventHandler(cache.FilteringResourceEventHandler{ | ||
| FilterFunc: controller.FilterController(&v1.SinkBinding{}), | ||
| Handler: controller.HandleAll(impl.EnqueueControllerOf), | ||
| }) | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.