Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for myVersionKey (0.24 sec)

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

    func TestBadJSONRejection(t *testing.T) {
    	log.SetOutput(os.Stderr)
    	_, codec := GetTestScheme()
    	badJSONs := [][]byte{
    		[]byte(`{"myVersionKey":"v1"}`),                          // Missing kind
    		[]byte(`{"myVersionKey":"v1","myKindKey":"bar"}`),        // Unknown kind
    		[]byte(`{"myVersionKey":"bar","myKindKey":"TestType1"}`), // Unknown version
    		[]byte(`{"myKindKey":"TestType1"}`),                      // Missing version
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/testing/types.go

    }
    
    // Test a weird version/kind embedding format.
    // +k8s:deepcopy-gen=false
    type MyWeirdCustomEmbeddedVersionKindField struct {
    	ID         string `json:"ID,omitempty"`
    	APIVersion string `json:"myVersionKey,omitempty"`
    	ObjectKind string `json:"myKindKey,omitempty"`
    	Z          string `json:"Z,omitempty"`
    	Y          uint64 `json:"Y,omitempty"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go

    		{
    			scheme: GetTestScheme(),
    			in:     &runtimetesting.TestType1{A: "test"},
    			into:   &runtimetesting.Unstructured{},
    			out: &runtimetesting.Unstructured{Object: map[string]interface{}{
    				"myVersionKey": "custom/v1",
    				"myKindKey":    "TestType3",
    				"A":            "test",
    			}},
    			gv: schema.GroupVersion{Group: "custom", Version: "v1"},
    		},
    	}
    	for i, test := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 38.2K bytes
    - Viewed (0)
Back to top