Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for instantiateCustomResource (0.34 sec)

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

    	instances := map[string]*struct {
    		Added    bool
    		Deleted  bool
    		Instance *unstructured.Unstructured
    	}{
    		"foo": {},
    		"bar": {},
    	}
    
    	for key, val := range instances {
    		val.Instance, err = instantiateCustomResource(t, fixtures.NewNoxuInstance(ns, key), noxuNamespacedResourceClient, noxuDefinition)
    		if err != nil {
    			t.Fatalf("unable to create Noxu Instance %q:%v", key, err)
    		}
    	}
    
    	addEvents := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 14 11:58:05 UTC 2022
    - 15.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    		},
    	)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer noxuWatch.Stop()
    
    	_, err = instantiateCustomResource(t, fixtures.NewNoxuInstance(ns, "bar"), noxuResourceClient, noxuDefinition)
    	if err != nil {
    		t.Fatalf("unable to create noxu Instance:%v", err)
    	}
    	createdNoxuInstanceFoo, err := instantiateCustomResource(t, fixtures.NewNoxuInstance(ns, "foo"), noxuResourceClient, noxuDefinition)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/test/integration/objectmeta_test.go

    	unstructured.SetNestedField(obj.UnstructuredContent(), map[string]interface{}{"foo": int64(42), "bar": "abc"}, "metadata", "labels")
    	_, err = instantiateCustomResource(t, obj, noxuResourceClient, noxuDefinition)
    	if err == nil {
    		t.Fatalf("unexpected non-error, expected invalid labels to be rejected: %v", err)
    	}
    	if status, ok := err.(errors.APIStatus); !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 05:32:34 UTC 2023
    - 19K bytes
    - Viewed (0)
Back to top