Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewMutatingWebhook (0.34 sec)

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

    		plugin, err := NewMutatingWebhook(configFile)
    		if err != nil {
    			return nil, err
    		}
    
    		return plugin, nil
    	})
    }
    
    // Plugin is an implementation of admission.Interface.
    type Plugin struct {
    	*generic.Webhook
    }
    
    var _ admission.MutationInterface = &Plugin{}
    
    // NewMutatingWebhook returns a generic admission webhook plugin.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    		// For now, skip failure cases or tests that explicitly skip benchmarking
    		if !tt.ExpectAllow || tt.SkipBenchmark {
    			continue
    		}
    		b.Run(tt.Name, func(b *testing.B) {
    			wh, err := NewMutatingWebhook(nil)
    			if err != nil {
    				b.Errorf("failed to create mutating webhook: %v", err)
    				return
    			}
    
    			ns := "webhook-test"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top