Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for dispatcherFactory (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

    )
    
    func NewPlugin[H any](
    	handler *admission.Handler,
    	sourceFactory sourceFactory[H],
    	dispatcherFactory dispatcherFactory[H],
    ) *Plugin[H] {
    	return &Plugin[H]{
    		Handler:           handler,
    		sourceFactory:     sourceFactory,
    		dispatcherFactory: dispatcherFactory,
    
    		// always exclude admission/mutating policies and bindings
    		excludedResources: sets.New(admissionResources...),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go

    )
    
    type sourceFactory func(f informers.SharedInformerFactory) Source
    type dispatcherFactory func(cm *webhookutil.ClientManager) Dispatcher
    
    // NewWebhook creates a new generic admission webhook.
    func NewWebhook(handler *admission.Handler, configFile io.Reader, sourceFactory sourceFactory, dispatcherFactory dispatcherFactory) (*Webhook, error) {
    	kubeconfigFile, err := config.LoadConfig(configFile)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top