mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #117985 from howardjohn/patch-2
Fix comments on InformerFor
This commit is contained in:
		@@ -166,7 +166,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -239,7 +239,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,7 +166,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -239,7 +239,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -184,7 +184,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -257,7 +257,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,7 +166,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -239,7 +239,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,7 +166,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -239,7 +239,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -168,7 +168,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -241,7 +241,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -167,7 +167,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -240,7 +240,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,7 +166,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -239,7 +239,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,7 +166,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -239,7 +239,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -166,7 +166,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 runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
					func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer {
 | 
				
			||||||
	f.lock.Lock()
 | 
						f.lock.Lock()
 | 
				
			||||||
@@ -239,7 +239,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 schema.GroupVersionResource) (GenericInformer, error)
 | 
						ForResource(resource schema.GroupVersionResource) (GenericInformer, error)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// InternalInformerFor returns the SharedIndexInformer for obj using an internal
 | 
						// InformerFor returns the SharedIndexInformer for obj using an internal
 | 
				
			||||||
	// client.
 | 
						// client.
 | 
				
			||||||
	InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
						InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user