Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for MutatingWebhook (0.24 sec)

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

    	GetType() string
    }
    
    // NewMutatingWebhookAccessor creates an accessor for a MutatingWebhook.
    func NewMutatingWebhookAccessor(uid, configurationName string, h *v1.MutatingWebhook) WebhookAccessor {
    	return &mutatingWebhookAccessor{uid: uid, configurationName: configurationName, MutatingWebhook: h}
    }
    
    type mutatingWebhookAccessor struct {
    	*v1.MutatingWebhook
    	uid               string
    	configurationName string
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  2. istioctl/pkg/tag/generate_test.go

    					t.Fatalf("expected CA bundle %q, got %q", tc.whCA, injectionWhConf.CABundle)
    				}
    			}
    		}
    	}
    }
    
    func testGenerateOption(t *testing.T, generate bool, assertFunc func(*testing.T, []admitv1.MutatingWebhook, []admitv1.MutatingWebhook)) {
    	defaultWh := defaultRevisionCanonicalWebhook.DeepCopy()
    	fakeClient := kube.NewFakeClient(defaultWh)
    
    	opts := &GenerateOptions{
    		Generate: generate,
    		Tag:      "default",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 16 17:43:49 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    			b.ResetTimer()
    			b.RunParallel(func(pb *testing.PB) {
    				for pb.Next() {
    					wh.Admit(context.TODO(), attr, objectInterfaces)
    				}
    			})
    		})
    	}
    }
    
    // TestAdmit tests that MutatingWebhook#Admit works as expected
    func TestAdmit(t *testing.T) {
    	testServer := webhooktesting.NewTestServer(t)
    	testServer.StartTLS()
    	defer testServer.Close()
    	serverURL, err := url.ParseRequestURI(testServer.URL)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. staging/src/k8s.io/api/admissionregistration/v1/zz_generated.deepcopy.go

    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook.
    func (in *MutatingWebhook) DeepCopy() *MutatingWebhook {
    	if in == nil {
    		return nil
    	}
    	out := new(MutatingWebhook)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/admissionregistration/v1beta1/zz_generated.deepcopy.go

    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook.
    func (in *MutatingWebhook) DeepCopy() *MutatingWebhook {
    	if in == nil {
    		return nil
    	}
    	out := new(MutatingWebhook)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 20:56:23 UTC 2023
    - 23.3K bytes
    - Viewed (0)
  6. pkg/apis/admissionregistration/zz_generated.deepcopy.go

    		copy(*out, *in)
    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MutatingWebhook.
    func (in *MutatingWebhook) DeepCopy() *MutatingWebhook {
    	if in == nil {
    		return nil
    	}
    	out := new(MutatingWebhook)
    	in.DeepCopyInto(out)
    	return out
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 20 16:30:10 UTC 2023
    - 24.6K bytes
    - Viewed (0)
  7. operator/cmd/mesh/manifest-generate_test.go

    	t.Helper()
    	objs, err := object.ParseK8sObjectsFromYAMLManifest(yml)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(objs) != 1 {
    		t.Fatal("expected one webhook")
    	}
    	return mustGetWebhook(t, *objs[0])
    }
    
    type LabelSet struct {
    	namespace, pod klabels.Set
    }
    
    func mergeWebhooks(whs ...[]v1.MutatingWebhook) []v1.MutatingWebhook {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 18:05:06 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  8. common-protos/k8s.io/api/admissionregistration/v1beta1/generated.proto

      // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
      //
      // Required.
      optional string expression = 2;
    }
    
    // MutatingWebhook describes an admission webhook and the resources and operations it applies to.
    message MutatingWebhook {
      // The name of the admission webhook.
      // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    			return statusErr
    		}
    		if invocation == nil {
    			continue
    		}
    
    		hook, ok := invocation.Webhook.GetMutatingWebhook()
    		if !ok {
    			return fmt.Errorf("mutating webhook dispatch requires v1.MutatingWebhook, but got %T", hook)
    		}
    		// This means that during reinvocation, a webhook will not be
    		// called for the first time. For example, if the webhook is
    		// skipped in the first round because of mismatching labels,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. common-protos/k8s.io/api/admissionregistration/v1/generated.proto

      // Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
      //
      // Required.
      optional string expression = 2;
    }
    
    // MutatingWebhook describes an admission webhook and the resources and operations it applies to.
    message MutatingWebhook {
      // The name of the admission webhook.
      // Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 24.4K bytes
    - Viewed (0)
Back to top