- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 61 for GetObjectKind (0.23 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter.go
} if expected, got := original.GetObjectKind().GroupVersionKind().Kind, converted.GetObjectKind().GroupVersionKind().Kind; expected != got { Metrics.ObserveConversionWebhookFailure(ctx, time.Since(t), ConversionWebhookInvalidConvertedObjectFailure)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 19:37:55 UTC 2023 - 20.6K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/strategy.go
} klog.V(5).InfoS(fmt.Sprintf("Something created the %s concurrently", bootstrap.GetObjectKind().GroupVersionKind().Kind), "type", configurationType, "name", name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:40 UTC 2023 - 14K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/nop_converter.go
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/apimachinery/pkg/util/managedfields/extract.go
// set the type meta manually if it doesn't exist to avoid missing kind errors // when decoding from unstructured JSON if _, ok := m["kind"]; !ok && object.GetObjectKind().GroupVersionKind().Kind != "" { m["kind"] = object.GetObjectKind().GroupVersionKind().Kind m["apiVersion"] = object.GetObjectKind().GroupVersionKind().GroupVersion().String() } if err := runtime.DefaultUnstructuredConverter.FromUnstructured(m, applyConfiguration); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 12 03:17:15 UTC 2022 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go
// DeepCopyObject implements runtime.Object interface. func (m *mockCacheableObject) DeepCopyObject() runtime.Object { panic("DeepCopy unimplemented for mockCacheableObject") } // GetObjectKind implements runtime.Object interface. func (m *mockCacheableObject) GetObjectKind() schema.ObjectKind { return m } // GroupVersionKind implements schema.ObjectKind interface. func (m *mockCacheableObject) GroupVersionKind() schema.GroupVersionKind {
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/runtime/testing/types.go
return schema.FromAPIVersionAndKind(obj.APIVersion, obj.ObjectKind) } func (obj *TestType2) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (obj *ExternalTestType2) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } // +k8s:deepcopy-gen=false type Unstructured 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/apiserver/pkg/endpoints/deprecation/deprecation.go
} } return "" } // WarningMessage returns a human-readable deprecation warning if the object implements APILifecycleDeprecated() // to indicate a non-zero deprecated major/minor version and has a populated GetObjectKind().GroupVersionKind(). func WarningMessage(obj runtime.Object) string { deprecated, isDeprecated := obj.(apiLifecycleDeprecated) if !isDeprecated { return "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 4.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/conversion.go
// if obj is a custom resource, it should not need conversion. if obj.GetObjectKind().GroupVersionKind() == gvk { return obj, nil } out, err := o.GetObjectCreater().New(gvk) if err != nil { return nil, err } err = o.GetObjectConvertor().Convert(obj, out, nil) if err != nil { return nil, err } // Explicitly set the GVK out.GetObjectKind().SetGroupVersionKind(gvk) return out, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 07 16:56:12 UTC 2023 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go
t.Fatal(err) } else if item.GetObjectKind().GroupVersionKind() != expectGVK { t.Errorf("expected update result to be %#v, got %#v", expectGVK, item.GetObjectKind().GroupVersionKind()) } // Get if item, err := crdInfo.storages[version.Name].CustomResource.Get(ctx, u.GetName(), &metav1.GetOptions{}); err != nil { t.Fatal(err) } else if item.GetObjectKind().GroupVersionKind() != expectGVK {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 34.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go
// create a new instance of the type so we always exercise the conversion path (skips short-circuiting on `into == obj`) decodeInto := into if into != nil { if _, ok := into.(runtime.Unstructured); ok && !into.GetObjectKind().GroupVersionKind().GroupVersion().Empty() { decodeInto = reflect.New(reflect.TypeOf(into).Elem()).Interface().(runtime.Object) } } var strictDecodingErrs []error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 03 06:51:04 UTC 2023 - 9.8K bytes - Viewed (0)