- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for myKindKey (0.08 sec)
-
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go
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 } for _, b := range badJSONs { if _, err := runtime.Decode(codec, b); err == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 13.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/testing/types.go
// +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"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type TestType1 struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 03:26:35 UTC 2023 - 11.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go
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 { t.Run(fmt.Sprintf("%d", i), func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:48:03 UTC 2023 - 38.2K bytes - Viewed (0)