fix deprecation comment in informer fatory generator

This commit is contained in:
Benjamin Elder
2025-08-15 11:01:43 -07:00
parent fa5792a466
commit 80071d16e1

View File

@@ -165,6 +165,7 @@ func NewSharedInformerFactory(client {{.clientSetInterface|raw}}, defaultResync
// NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory.
// Listers obtained via this SharedInformerFactory will be subject to the same filters
// as specified here.
//
// Deprecated: Please use NewSharedInformerFactoryWithOptions instead
func NewFilteredSharedInformerFactory(client {{.clientSetInterface|raw}}, defaultResync {{.timeDuration|raw}}, namespace string, tweakListOptions {{.interfacesTweakListOptionsFunc|raw}}) SharedInformerFactory {
return NewSharedInformerFactoryWithOptions(client, defaultResync, WithNamespace(namespace), WithTweakListOptions(tweakListOptions))