Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 152 for createActions (0.28 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    		// Case when typeless Unstructured object is passed
    		typelessInstance := &unstructured.Unstructured{}
    		if _, err := noxuResourceClient.Create(context.TODO(), typelessInstance, metav1.CreateOptions{}); !errors.IsBadRequest(err) {
    			t.Errorf("expected badrequest for submitting empty object, got %#v", err)
    		}
    		// Case when apiVersion and Kind would be set up from GVK, but no other objects are present
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. plugin/pkg/admission/limitranger/admission_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	err = handler.Validate(context.TODO(), admission.NewAttributesRecord(&testPod, nil, api.Kind("Pod").WithVersion("version"), limitRange.Namespace, "testPod", 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
    - 51.5K bytes
    - Viewed (0)
  3. pkg/registry/core/replicationcontroller/storage/storage_test.go

    	ctx := genericapirequest.WithNamespace(genericapirequest.NewContext(), rc.Namespace)
    	obj, err := storage.Create(ctx, &rc, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err != nil {
    		t.Errorf("Failed to create controller, %v", err)
    	}
    	newRc := obj.(*api.ReplicationController)
    	return *newRc, nil
    }
    
    func validNewController() *api.ReplicationController {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 16 06:57:01 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/addons/dns/dns_test.go

    		ObjectMeta: metav1.ObjectMeta{
    			Name:      kubeadmconstants.CoreDNSConfigMap,
    			Namespace: metav1.NamespaceSystem,
    		},
    		Data: map[string]string{
    			"Corefile": corefile,
    		},
    	}, metav1.CreateOptions{})
    	if err != nil {
    		t.Fatalf("error creating ConfigMap: %v", err)
    	}
    	_, err = client.AppsV1().Deployments(metav1.NamespaceSystem).Create(context.TODO(), &apps.Deployment{
    		TypeMeta: metav1.TypeMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/admission/v1/types.go

    	// e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be
    	// different than the options the caller provided. e.g. for a patch request the performed
    	// Operation might be a CREATE, in which case the Options will a
    	// `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    type CustomResourceDefinitionInterface interface {
    	Create(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.CreateOptions) (*v1beta1.CustomResourceDefinition, error)
    	Update(ctx context.Context, customResourceDefinition *v1beta1.CustomResourceDefinition, opts v1.UpdateOptions) (*v1beta1.CustomResourceDefinition, error)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. plugin/pkg/admission/podtolerationrestriction/admission_test.go

    			if test.admit && err != nil {
    				t.Errorf("Test: %s, expected no error but got: %s", test.testName, err)
    			} else if !test.admit && err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go

    		shirt := &unstructured.Unstructured{}
    		if err := yaml.Unmarshal([]byte(instance), &shirt.Object); err != nil {
    			t.Fatal(err)
    		}
    
    		_, err = shirtv1Client.Create(ctx, shirt, metav1.CreateOptions{})
    		if err != nil {
    			t.Fatalf("Unable to create CR: %v", err)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:53:03 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. operator/pkg/util/k8s.go

    				Name:   namespace,
    				Labels: map[string]string{},
    			}}
    			if network != "" {
    				ns.Labels[label.TopologyNetwork.Name] = network
    			}
    			_, err := cs.CoreV1().Namespaces().Create(context.TODO(), ns, metav1.CreateOptions{})
    			if err != nil {
    				return fmt.Errorf("failed to create namespace %v: %v", namespace, err)
    			}
    
    			return nil
    		}
    
    		return fmt.Errorf("failed to check if namespace %v exists: %v", namespace, err)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. pkg/config/schema/codegen/templates/crdclient.go.tmpl

    			ObjectMeta: objMeta,
    			Spec:       *(cfg.Spec.(*{{ .ClientImport }}.{{.SpecType}})),
    		}, metav1.CreateOptions{})
    	{{- end }}
    {{- end }}
    	default:
    		return nil, fmt.Errorf("unsupported type: %v", cfg.GroupVersionKind)
    	}
    }
    
    func update(c kube.Client, cfg config.Config, objMeta metav1.ObjectMeta) (metav1.Object, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top