mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Fix comments on InformerFor
This commit is contained in:
parent
53636bc780
commit
7248b9263f
@ -234,7 +234,7 @@ func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[ref
|
|||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|
||||||
// InternalInformerFor returns the SharedIndexInformer for obj using an internal
|
// InformerFor returns the SharedIndexInformer for obj using an internal
|
||||||
// client.
|
// client.
|
||||||
func (f *sharedInformerFactory) InformerFor(obj {{.runtimeObject|raw}}, newFunc {{.interfacesNewInformerFunc|raw}}) {{.cacheSharedIndexInformer|raw}} {
|
func (f *sharedInformerFactory) InformerFor(obj {{.runtimeObject|raw}}, newFunc {{.interfacesNewInformerFunc|raw}}) {{.cacheSharedIndexInformer|raw}} {
|
||||||
f.lock.Lock()
|
f.lock.Lock()
|
||||||
@ -310,7 +310,7 @@ type SharedInformerFactory interface {
|
|||||||
// ForResource gives generic access to a shared informer of the matching type.
|
// ForResource gives generic access to a shared informer of the matching type.
|
||||||
ForResource(resource {{.schemaGroupVersionResource|raw}}) (GenericInformer, error)
|
ForResource(resource {{.schemaGroupVersionResource|raw}}) (GenericInformer, error)
|
||||||
|
|
||||||
// InternalInformerFor returns the SharedIndexInformer for obj using an internal
|
// InformerFor returns the SharedIndexInformer for obj using an internal
|
||||||
// client.
|
// client.
|
||||||
InformerFor(obj {{.runtimeObject|raw}}, newFunc {{.interfacesNewInformerFunc|raw}}) {{.cacheSharedIndexInformer|raw}}
|
InformerFor(obj {{.runtimeObject|raw}}, newFunc {{.interfacesNewInformerFunc|raw}}) {{.cacheSharedIndexInformer|raw}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user