Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for GetObjectKind (0.19 sec)

  1. pkg/api/testing/unstructured_test.go

    					t.Fatalf("conversion for %v failed: %v", gvk.Kind, err)
    				}
    
    				// Decoding into Unstructured requires that apiVersion and kind be
    				// serialized, so populate TypeMeta.
    				item.GetObjectKind().SetGroupVersionKind(gvk)
    
    				jsonSerializer := jsonserializer.NewSerializerWithOptions(jsonserializer.DefaultMetaFactory, legacyscheme.Scheme, legacyscheme.Scheme, jsonserializer.SerializerOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. pkg/kube/util.go

    // As the name implies, it is not efficient.
    func SlowConvertToRuntimeObject(in *crd.IstioKind) (runtime.Object, error) {
    	by, err := config.ToJSON(in)
    	if err != nil {
    		return nil, err
    	}
    	gvk := in.GetObjectKind().GroupVersionKind()
    	obj, _, err := IstioCodec.UniversalDeserializer().Decode(by, &gvk, nil)
    	if err != nil {
    		return nil, err
    	}
    	return obj, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go

    	// Delegate for things other than Unstructured, and other GKs
    	u, ok := in.(runtime.Unstructured)
    	if !ok || u.GetObjectKind().GroupVersionKind().GroupKind() != d.structuralSchemaGK {
    		d.delegate.Default(in)
    		return
    	}
    
    	structuraldefaulting.Default(u.UnstructuredContent(), d.structuralSchemas[u.GetObjectKind().GroupVersionKind().Version])
    }
    
    // clone returns a clone of the provided crdStorageMap.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 52.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go

    type staticTextMarshaler int
    
    func (staticTextMarshaler) MarshalText() ([]byte, error) {
    	return []byte("static"), nil
    }
    
    type testEncodableMap[K comparable] map[K]interface{}
    
    func (testEncodableMap[K]) GetObjectKind() schema.ObjectKind {
    	panic("unimplemented")
    }
    
    func (testEncodableMap[K]) DeepCopyObject() runtime.Object {
    	panic("unimplemented")
    }
    
    func TestEncode(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:55:02 UTC 2024
    - 40K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    		var (
    			warnings       []string
    			deprecated     bool
    			removedRelease string
    		)
    
    		{
    			versionedPtrWithGVK := versionedPtr.DeepCopyObject()
    			versionedPtrWithGVK.GetObjectKind().SetGroupVersionKind(fqKindToRegister)
    			currentMajor, currentMinor, _ := deprecation.MajorMinor(versioninfo.Get())
    			deprecated = deprecation.IsDeprecated(versionedPtrWithGVK, currentMajor, currentMinor)
    			if deprecated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go

    	}
    
    	accessor, err := meta.Accessor(example)
    	if err != nil {
    		panic(err)
    	}
    
    	return &FakeAttributes{
    		Attributes: admission.NewAttributesRecord(
    			new,
    			old,
    			example.GetObjectKind().GroupVersionKind(),
    			accessor.GetNamespace(),
    			accessor.GetName(),
    			schema.GroupVersionResource{},
    			"",
    			operation,
    			nil,
    			false,
    			nil,
    		),
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 25 01:39:01 UTC 2024
    - 63.8K bytes
    - Viewed (0)
Back to top