Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewFakeValidatingDataSource (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go

    			if err != nil {
    				b.Errorf("%s: failed to create validating webhook: %v", tt.Name, err)
    				return
    			}
    
    			ns := "webhook-test"
    			client, informer := webhooktesting.NewFakeValidatingDataSource(ns, tt.Webhooks, stopCh)
    
    			wh.SetAuthenticationInfoResolverWrapper(webhooktesting.Wrapper(webhooktesting.NewAuthenticationInfoResolver(new(int32))))
    			wh.SetServiceResolver(webhooktesting.NewServiceResolver(*serverURL))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go

    var reinvokeNever = registrationv1.NeverReinvocationPolicy
    var reinvokeIfNeeded = registrationv1.IfNeededReinvocationPolicy
    
    // NewFakeValidatingDataSource returns a mock client and informer returning the given webhooks.
    func NewFakeValidatingDataSource(name string, webhooks []registrationv1.ValidatingWebhook, stopCh <-chan struct{}) (clientset kubernetes.Interface, factory informers.SharedInformerFactory) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 47.6K bytes
    - Viewed (0)
Back to top