// newHandlerForTest returns a configured handler for testing.
newHandlerForTest returns a configured handler for testing.
// newHandlerForTest returns a configured handler for testing .
func newHandlerForTest(internalClient internalclientset.Interface) (admission.Interface, informers.SharedInformerFactory, error) {
	f := informers.NewSharedInformerFactory(internalClient, 5*time.Minute)
	handler, err := NewDefaultClusterServicePlan()
	if err != nil {
		return nil, f, err
	}
	pluginInitializer := scadmission.NewPluginInitializer(internalClient, f, nil, nil)
	pluginInitializer.Initialize(handler)
	err = admission.ValidateInitialization(handler)
	return handler, f, err
}
func newHandlerForTest ( internalClient internalclientset . Interface ) ( admission . Interface , informers . SharedInformerFactory , error ) { f := informers . NewSharedInformerFactory ( internalClient , 5 * time . Minute ) handler , err := NewDefaultClusterServicePlan ( ) if err != nil { return nil , f , err } pluginInitializer := scadmission . NewPluginInitializer ( internalClient , f , nil , nil ) pluginInitializer . Initialize ( handler ) err = admission . ValidateInitialization ( handler ) return handler , f , err }
newHandlerForTest returns a configured handler for testing.
newHandlerForTest returns a configured handler for testing .