Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewNotRegisteredErrForKind (0.3 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go

    		{
    			data:        []byte(`{"kind":"Test","apiVersion":"other/blah","value":1,"Other":"test"}`),
    			into:        &testDecodable{},
    			typer:       &mockTyper{err: runtime.NewNotRegisteredErrForKind("mock", schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"})},
    			expectedGVK: &schema.GroupVersionKind{Kind: "Test", Group: "other", Version: "blah"},
    			expectedObject: &testDecodable{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 04 15:55:02 UTC 2024
    - 40K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go

    		return reflect.New(t).Interface().(Object), nil
    	}
    
    	if t, exists := s.unversionedKinds[kind.Kind]; exists {
    		return reflect.New(t).Interface().(Object), nil
    	}
    	return nil, NewNotRegisteredErrForKind(s.schemeName, kind)
    }
    
    // AddIgnoredConversionType identifies a pair of types that should be skipped by
    // conversion (because the data inside them is explicitly dropped during
    // conversion).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 25.2K bytes
    - Viewed (0)
Back to top