- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for SetGroupVersionKind (0.24 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller_test.go
"resourceVersion": "object1", }, }) object1.SetGroupVersionKind(fakeGVK) object1v2 := &unstructured.Unstructured{} object1v2.SetUnstructuredContent(map[string]interface{}{ "metadata": map[string]interface{}{ "name": "object1", "resourceVersion": "object1v2", }, }) object1v2.SetGroupVersionKind(fakeGVK) object2 := &unstructured.Unstructured{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 12 18:58:24 UTC 2024 - 16.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/nop_converter.go
// Run the converter on the list items instead of list itself if list, ok := in.(*unstructured.UnstructuredList); ok { for i := range list.Items { list.Items[i].SetGroupVersionKind(targetGV.WithKind(list.Items[i].GroupVersionKind().Kind)) } } in.GetObjectKind().SetGroupVersionKind(targetGV.WithKind(in.GetObjectKind().GroupVersionKind().Kind)) return in, nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 1.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go
} // GroupVersionKind implements schema.ObjectKind interface. func (m *mockCacheableObject) GroupVersionKind() schema.GroupVersionKind { return m.gvk } // SetGroupVersionKind implements schema.ObjectKind interface. func (m *mockCacheableObject) SetGroupVersionKind(gvk schema.GroupVersionKind) { m.gvk = gvk } // CacheEncode implements runtime.CacheableObject interface.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 09:07:03 UTC 2023 - 6.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/meta.go
func (meta *ListMeta) SetRemainingItemCount(c *int64) { meta.RemainingItemCount = c } func (obj *TypeMeta) GetObjectKind() schema.ObjectKind { return obj } // SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind) { obj.APIVersion, obj.Kind = gvk.ToAPIVersionAndKind() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 7.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_test.go
type testDecodable struct { Other string Value int `json:"value"` gvk schema.GroupVersionKind } func (d *testDecodable) GetObjectKind() schema.ObjectKind { return d } func (d *testDecodable) SetGroupVersionKind(gvk schema.GroupVersionKind) { d.gvk = gvk } func (d *testDecodable) GroupVersionKind() schema.GroupVersionKind { return d.gvk } func (d *testDecodable) DeepCopyObject() runtime.Object {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 23 17:04:19 UTC 2022 - 12.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/helper.go
if ok { gvk = preferredGVK } } // The gvk only needs to be set if not already as desired. if gvk != oldGVK { kind.SetGroupVersionKind(gvk) defer kind.SetGroupVersionKind(oldGVK) } return e.Encoder.Encode(obj, stream) } // WithoutVersionDecoder clears the group version kind of a deserialized object. type WithoutVersionDecoder struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 13 22:54:34 UTC 2023 - 8.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/testing/types.go
A string `json:"A,omitempty"` } func (obj *MyWeirdCustomEmbeddedVersionKindField) GetObjectKind() schema.ObjectKind { return obj } func (obj *MyWeirdCustomEmbeddedVersionKindField) SetGroupVersionKind(gvk schema.GroupVersionKind) { obj.APIVersion, obj.ObjectKind = gvk.ToAPIVersionAndKind() } func (obj *MyWeirdCustomEmbeddedVersionKindField) GroupVersionKind() schema.GroupVersionKind {
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/apiextensions-apiserver/pkg/apiserver/validation/metrics_test.go
sts, err := structuralschema.NewStructural(&tt.schema) if err != nil { t.Fatal(err) } gvk := schema.GroupVersionKind{Group: "example.com", Version: "v1", Kind: "Foo"} tt.obj.SetGroupVersionKind(gvk) tt.old.SetGroupVersionKind(gvk) strategy := customresource.NewStrategy( nil, true, gvk, schemaValidator, nil, sts, nil, nil, nil, )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 10.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go
return nil, err } // TODO: turn this into an internal type and do conversion in order to get object kind automatically set? partial := meta.AsPartialObjectMetadata(m) partial.GetObjectKind().SetGroupVersionKind(groupVersion.WithKind("PartialObjectMetadata")) item.Object.Object = partial case metav1.IncludeNone: item.Object.Object = nil default:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 18 09:07:03 UTC 2023 - 16.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured_list.go
func (u *UnstructuredList) NewEmptyInstance() runtime.Unstructured { out := new(UnstructuredList) if u != nil { out.SetGroupVersionKind(u.GroupVersionKind()) } return out } // UnstructuredContent returns a map contain an overlay of the Items field onto // the Object field. Items always overwrites overlay.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 04:46:35 UTC 2023 - 6.3K bytes - Viewed (0)