Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewAttributesRecord (0.42 sec)

  1. plugin/pkg/admission/namespace/autoprovision/admission_test.go

    	}
    	informerFactory.Start(wait.NeverStop)
    
    	pod := newPod(namespace)
    	err = admissiontesting.WithReinvocationTesting(t, handler).Admit(context.TODO(), admission.NewAttributesRecord(&pod, nil, api.Kind("Pod").WithVersion("version"), pod.Namespace, pod.Name, api.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil), nil)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. plugin/pkg/admission/namespace/exists/admission_test.go

    	if err != nil {
    		t.Errorf("unexpected error initializing handler: %v", err)
    	}
    	informerFactory.Start(wait.NeverStop)
    
    	pod := newPod(namespace)
    	err = handler.Validate(context.TODO(), admission.NewAttributesRecord(&pod, nil, api.Kind("Pod").WithVersion("version"), pod.Namespace, pod.Name, api.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil), nil)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. plugin/pkg/admission/podnodeselector/admission_test.go

    		handler.clusterNodeSelectors[namespace.Name] = test.whitelist
    		pod.Spec = api.PodSpec{NodeSelector: test.podNodeSelector}
    
    		err := handler.Admit(context.TODO(), admission.NewAttributesRecord(pod, nil, api.Kind("Pod").WithVersion("version"), "testNamespace", namespace.ObjectMeta.Name, api.Resource("pods").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil), nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top