Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 138 for createActions (0.71 sec)

  1. pkg/registry/core/service/ipallocator/cidrallocator_test.go

    	}
    	if _, err := r.AllocateNext(); err == nil {
    		t.Error(err)
    	}
    
    	cidr := newServiceCIDR("test", "192.168.0.0/28")
    	_, err = r.client.ServiceCIDRs().Create(context.Background(), cidr, metav1.CreateOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	r.addServiceCIDR(cidr)
    	// wait for the cidr to be processed and set the informer synced
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/rules/rules_test.go

    				a("2", "v", "r2", "proxy", "name", admission.Create, &metav1.CreateOptions{}),
    				a("2", "v", "r3", "proxy", "name", admission.Create, &metav1.CreateOptions{}),
    			),
    			noMatch: attrList(
    				a("g", "v", "r", "", "name", admission.Create, &metav1.CreateOptions{}),
    				a("2", "v", "r2", "", "name", admission.Create, &metav1.CreateOptions{}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 25 23:28:16 UTC 2022
    - 13.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/matching/matching_test.go

    			attrs:         admission.NewAttributesRecord(nil, nil, gvk("apps", "v1", "Deployment"), "ns", "name", gvr("apps", "v1", "deployments"), "", admission.Create, &metav1.CreateOptions{}, false, nil),
    			expectMatches: false,
    		},
    		{
    			name: "wildcard rule, match as requested",
    			criteria: &v1.MatchResources{
    				NamespaceSelector: &metav1.LabelSelector{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  4. plugin/pkg/admission/serviceaccount/admission_test.go

    	pod := &api.Pod{}
    	attrs := admission.NewAttributesRecord(pod, nil, api.Kind("Pod").WithVersion("version"), "myns", "myname", api.Resource("CustomResource").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil)
    	handler := admissiontesting.WithReinvocationTesting(t, NewServiceAccount())
    	err := handler.Admit(context.TODO(), attrs, nil)
    	if err != nil {
    		t.Errorf("Expected non-pod resource allowed, got err: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  5. pkg/registry/core/pod/storage/storage_test.go

    	}
    	_, err = bindingStorage.Create(ctx, binding.Name, &binding, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	_, err = bindingStorage.Create(ctx, binding.Name, &binding, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err == nil || !errors.IsConflict(err) {
    		t.Fatalf("expected resource conflict error, not: %v", err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            this.createDisposition = createDisposition;
        }
    
    
        /**
         * @param createOptions
         *            the createOptions to set
         */
        public void setCreateOptions ( int createOptions ) {
            this.createOptions = createOptions;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jun 01 09:52:11 UTC 2019
    - 14.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go

    			attrs:       admission.NewAttributesRecord(nil, nil, gvk("apps", "v1", "Deployment"), "ns", "name", gvr("apps", "v1", "deployments"), "", admission.Create, &metav1.CreateOptions{}, false, nil),
    			expectCall:  false,
    			matchResult: true,
    		},
    		{
    			name: "invalid kind lookup",
    			webhook: &v1.ValidatingWebhook{
    				NamespaceSelector: &metav1.LabelSelector{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 32K bytes
    - Viewed (0)
  8. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		return true, obj, nil
    	})
    	fakeClient.AddReactor("create", "pods", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    		createAction := action.(core.CreateAction)
    		pod := createAction.GetObject().(*v1.Pod)
    		extraPods.Items = append(extraPods.Items, *pod)
    		return true, createAction.GetObject(), nil
    	})
    	fakeClient.AddReactor("list", "csinodes", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission_test.go

    	if err != nil {
    		t.Error(err)
    	}
    }
    
    // TestAdmissionNamespaceDoesNotExist verifies pod is not admitted if namespace does not exist.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/DefaultCommandLineActionFactoryTest.groovy

            and:
            1 * actionFactory1.createAction(!null, !null) >> {
                def action1 = { println "action1" }
                action1Intermediary ? action1 as ContinuingAction<ExecutionListener> : action1 as Action<ExecutionListener>
    
            }
            action2Called * actionFactory2.createAction(!null, !null) >> {
                { println "action2" } as Action<ExecutionListener>
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top