diff --git a/informers/factory.go b/informers/factory.go index 3b755ea6..bd3d16c0 100644 --- a/informers/factory.go +++ b/informers/factory.go @@ -224,7 +224,7 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal // // It is typically used like this: // -// ctx, cancel := context.Background() +// ctx, cancel := context.WithCancel(context.Background()) // defer cancel() // factory := NewSharedInformerFactory(client, resyncPeriod) // defer factory.WaitForStop() // Returns immediately if nothing was started.