Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for createActions (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. cmd/kubeadm/app/util/apiclient/idempotency.go

    		true, func(_ context.Context) (bool, error) {
    			ctx := context.Background()
    			if _, err := client.CoreV1().ConfigMaps(cm.ObjectMeta.Namespace).Create(ctx, cm, metav1.CreateOptions{}); err != nil {
    				if !apierrors.IsAlreadyExists(err) {
    					lastError = errors.Wrap(err, "unable to create ConfigMap")
    					return false, nil
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/cli/DefaultCommandLineActionFactory.java

            @Override
            public Action<? super ExecutionListener> createAction(CommandLineParser parser, ParsedCommandLine commandLine) {
                List<Action<? super ExecutionListener>> actions = new ArrayList<>(2);
                for (CommandLineActionCreator actionCreator : actionCreators) {
                    Action<? super ExecutionListener> action = actionCreator.createAction(parser, commandLine);
                    if (action != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  7. istioctl/pkg/workload/workload_test.go

    					Secrets:    []v1.ObjectReference{{Name: "test"}},
    				}, metav1.CreateOptions{})
    				client.Kube().CoreV1().ConfigMaps("bar").Create(context.Background(), &v1.ConfigMap{
    					ObjectMeta: metav1.ObjectMeta{Namespace: "bar", Name: "istio-ca-root-cert"},
    					Data:       map[string]string{"root-cert.pem": string(fakeCACert)},
    				}, metav1.CreateOptions{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller_test.go

    	defer cancel()
    
    	env := setup()
    	_, err := env.Interface.
    		ApiextensionsV1().
    		CustomResourceDefinitions().
    		Create(
    			ctx,
    			coolFooCRD,
    			metav1.CreateOptions{
    				FieldManager: "resource-manager-test",
    			},
    		)
    
    	require.NoError(t, err)
    
    	env.FakeResourceManager.Expect().
    		AddGroupVersion(coolFooCRD.Spec.Group, coolFooDiscovery)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. pkg/controller/volume/attachdetach/attach_detach_controller_test.go

    				ObjectMeta: metav1.ObjectMeta{
    					Name: fmt.Sprintf("vol-%d-%d", i, j),
    				},
    			}, metav1.CreateOptions{})
    			if err != nil {
    				t.Fatalf("failed to create PV: %v", err)
    			}
    		}
    		_, err := fakeKubeClient.CoreV1().Nodes().Create(context.Background(), node, metav1.CreateOptions{})
    		if err != nil {
    			t.Fatalf("failed to create node: %v", err)
    		}
    	}
    
    	return fakeKubeClient
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. pkg/registry/core/pod/storage/eviction_test.go

    		requestOptions  *metav1.CreateOptions
    		pdbs            []runtime.Object
    	}{
    		{
    			name:            "just request-options",
    			requestOptions:  &metav1.CreateOptions{DryRun: []string{"All"}},
    			evictionOptions: &metav1.DeleteOptions{},
    		},
    		{
    			name:            "just eviction-options",
    			requestOptions:  &metav1.CreateOptions{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
Back to top