From c7f8506da07a1e6b7f17b3c41753963796f07e3b Mon Sep 17 00:00:00 2001 From: Joe Betz Date: Thu, 5 Mar 2026 20:06:01 -0500 Subject: [PATCH] Fix informer factory generation and add test Kubernetes-commit: c0addb352e284feda34667f0a36c06da9f1cf2a6 --- informers/factory.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/informers/factory.go b/informers/factory.go index c7c735fed..19901079f 100644 --- a/informers/factory.go +++ b/informers/factory.go @@ -256,7 +256,9 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal } informer = newFunc(f.client, resyncPeriod) - informer.SetTransform(f.transform) + if f.transform != nil { + informer.SetTransform(f.transform) + } f.informers[informerType] = informer return informer