You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/cvo: Surface errors in update-risk detector creation
vendor/k8s.io/client-go/tools/cache/shared_informer.go has:
func (s *sharedIndexInformer) AddEventHandlerWithOptions(handler ResourceEventHandler, options HandlerOptions) (ResourceEventHandlerRegistration, error) {
s.startedLock.Lock()
defer s.startedLock.Unlock()
if s.stopped {
return nil, fmt.Errorf("handler %v was not added to shared informer because it has stopped already", handler)
}
which might be the only reason AddEeventHandler could fail. But
regardless, it is still good practice to bubble things up and fail
fast, to summon a cluster administrator to help sort out whatever the
issue is.
0 commit comments