- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 60 for GetObjectKind (0.21 sec)
-
staging/src/k8s.io/apimachinery/pkg/test/api_meta_help_test.go
} } } } type fakePtrInterfaceList struct { Items *[]runtime.Object } func (obj fakePtrInterfaceList) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (obj fakePtrInterfaceList) DeepCopyObject() runtime.Object { panic("fakePtrInterfaceList does not support DeepCopy") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 8.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/scheme.go
if kind.Version == APIVersionInternal { // internal is a special case // TODO: look at removing the need to special case this obj.GetObjectKind().SetGroupVersionKind(schema.GroupVersionKind{}) return } obj.GetObjectKind().SetGroupVersionKind(kind) } // SetVersionPriority allows specifying a precise order of priority. All specified versions must be in the same group,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 25.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/rest/streamer.go
DeprecatedTLSVerificationErrorCounter CounterMetric } // a LocationStreamer must implement a rest.ResourceStreamer var _ rest.ResourceStreamer = &LocationStreamer{} func (obj *LocationStreamer) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (obj *LocationStreamer) DeepCopyObject() runtime.Object { panic("rest.LocationStreamer does not implement DeepCopyObject") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 16:43:09 UTC 2023 - 3.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/versionconverter.go
if err != nil { return object, err } // If attempting to convert to the same version as we already have, just return it. fromVersion := objectToConvert.GetObjectKind().GroupVersionKind().GroupVersion() if fromVersion == groupVersion { return object, nil } // Convert to internal
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 08 21:44:00 UTC 2023 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor.go
// lax mode for decoding into TypeMeta. if err := modes.DecodeLax.Unmarshal(data, &tm); err != nil { return nil, fmt.Errorf("unable to determine group/version/kind: %w", err) } actual := tm.GetObjectKind().GroupVersionKind() return &actual, nil } type Serializer interface { runtime.Serializer recognizer.RecognizingDecoder } var _ Serializer = &serializer{} type options struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 14:57:12 UTC 2024 - 9.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/runtime_serializer_protobuf_protobuf_test.go
"k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/serializer/protobuf" ) type testObject struct { gvk schema.GroupVersionKind } func (d *testObject) GetObjectKind() schema.ObjectKind { return d } func (d *testObject) SetGroupVersionKind(gvk schema.GroupVersionKind) { d.gvk = gvk } func (d *testObject) GroupVersionKind() schema.GroupVersionKind { return d.gvk }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:16 UTC 2023 - 8.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/metrics.go
} func (m *converterMetric) Convert(in runtime.Object, targetGV schema.GroupVersion) (runtime.Object, error) { start := time.Now() obj, err := m.delegate.Convert(in, targetGV) fromVersion := in.GetObjectKind().GroupVersionKind().Version toVersion := targetGV.Version // only record this observation if the version is different if fromVersion != toVersion { m.latencies.WithLabelValues(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 19:34:33 UTC 2023 - 5.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go
// NOTE: Foo struct itself is the implementer of runtime.Object. type Foo struct { metav1.TypeMeta metav1.ObjectMeta Spec FooSpec } func (f Foo) GetObjectKind() schema.ObjectKind { tm := f.TypeMeta return &tm } func (f Foo) DeepCopyObject() runtime.Object { panic("unimplemented") } // NOTE: the pointer of Sample that is the implementer of runtime.Object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 29 13:40:46 UTC 2023 - 12.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/dispatcher.go
namespace, err = c.matcher.GetNamespace(namespaceName) if err != nil { return err } } for _, param := range params { var p runtime.Object = param if p != nil && p.GetObjectKind().GroupVersionKind().Empty() { // Make sure param has TypeMeta populated // This is a simple hack to make sure typeMeta is // available to CEL without making copies of objects, etc. p = &wrappedParam{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 14.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/typeconverter.go
return &typeConverter{parser: tr}, nil } func (c *typeConverter) ObjectToTyped(obj runtime.Object, opts ...typed.ValidationOptions) (*typed.TypedValue, error) { gvk := obj.GetObjectKind().GroupVersionKind() t := c.parser[gvk] if t == nil { return nil, NewNoCorrespondingTypeError(gvk) } switch o := obj.(type) { case *unstructured.Unstructured:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 22:55:50 UTC 2023 - 5.6K bytes - Viewed (0)