func()

in pkg/client/informers/externalversions/generic.go [53:62]


func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) {
	switch resource {
	// Group=node.k8s.io, Version=v1alpha1
	case v1alpha1.SchemeGroupVersion.WithResource("runtimeclasses"):
		return &genericInformer{resource: resource.GroupResource(), informer: f.Node().V1alpha1().RuntimeClasses().Informer()}, nil

	}

	return nil, fmt.Errorf("no informer found for %v", resource)
}