diff --git a/pkg/util/informermanager/keys/keys.go b/pkg/util/informermanager/keys/keys.go index 8bdb7eec2..9d5698bec 100644 --- a/pkg/util/informermanager/keys/keys.go +++ b/pkg/util/informermanager/keys/keys.go @@ -33,7 +33,7 @@ func (k ClusterWideKey) String() string { return fmt.Sprintf("%s, kind=%s, %s", k.GroupVersion().String(), k.Kind, k.NamespaceKey()) } -// NamespaceKey returns the traditional key of a object. +// NamespaceKey returns the traditional key of an object. func (k *ClusterWideKey) NamespaceKey() string { if len(k.Namespace) > 0 { return k.Namespace + "/" + k.Name diff --git a/pkg/util/informermanager/single-cluster-manager.go b/pkg/util/informermanager/single-cluster-manager.go index 383accdab..ac589dce1 100644 --- a/pkg/util/informermanager/single-cluster-manager.go +++ b/pkg/util/informermanager/single-cluster-manager.go @@ -22,13 +22,13 @@ type SingleClusterInformerManager interface { ForResource(resource schema.GroupVersionResource, handler cache.ResourceEventHandler) // IsInformerSynced checks if the resource's informer is synced. - // A informer is synced means: + // An informer is synced means: // - The informer has been created(by method 'ForResource' or 'Lister'). // - The informer has started(by method 'Start'). // - The informer's cache has been synced. IsInformerSynced(resource schema.GroupVersionResource) bool - // IsHandlerExist checks if handler already added to a the informer that watches the 'resource'. + // IsHandlerExist checks if handler already added to the informer that watches the 'resource'. IsHandlerExist(resource schema.GroupVersionResource, handler cache.ResourceEventHandler) bool // Lister returns a generic lister used to get 'resource' from informer's store.