- Sort Score
- Result 10 results
- Languages All
Results 51 - 59 of 59 for GetObjectKind (0.27 sec)
-
pkg/kube/util.go
// As the name implies, it is not efficient. func SlowConvertToRuntimeObject(in *crd.IstioKind) (runtime.Object, error) { by, err := config.ToJSON(in) if err != nil { return nil, err } gvk := in.GetObjectKind().GroupVersionKind() obj, _, err := IstioCodec.UniversalDeserializer().Decode(by, &gvk, nil) if err != nil { return nil, err } return obj, nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 05:10:23 UTC 2024 - 18.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/interfaces.go
// serializers to set the kind, version, and group the object is represented as. An Object may choose // to return a no-op ObjectKindAccessor in cases where it is not expected to be serialized. type Object interface { GetObjectKind() schema.ObjectKind DeepCopyObject() Object } // CacheableObject allows an object to cache its different serializations // to avoid performing the same serialization multiple times.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 03:26:35 UTC 2023 - 19K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
// Delegate for things other than Unstructured, and other GKs u, ok := in.(runtime.Unstructured) if !ok || u.GetObjectKind().GroupVersionKind().GroupKind() != d.structuralSchemaGK { d.delegate.Default(in) return } structuraldefaulting.Default(u.UnstructuredContent(), d.structuralSchemas[u.GetObjectKind().GroupVersionKind().Version]) } // clone returns a clone of the provided crdStorageMap.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 19:06:46 UTC 2024 - 52.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go
t.Fatalf("unexpected error: %v", err) } if !matches { t.Errorf("wanted:\n%s\ngot:\n%s", test.expected, out) } } } type TestUnknownType struct{} func (obj *TestUnknownType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (obj *TestUnknownType) DeepCopyObject() runtime.Object { if obj == nil { return nil } clone := *obj return &clone }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 30 15:08:43 UTC 2022 - 24.4K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/visitor.go
// ObjectName returns an approximate form of the resource's kind/name. func (i *Info) ObjectName() string { if i.Mapping != nil { return fmt.Sprintf("%s/%s", i.Mapping.Resource.Resource, i.Name) } gvk := i.Object.GetObjectKind().GroupVersionKind() if len(gvk.Group) == 0 { return fmt.Sprintf("%s/%s", strings.ToLower(gvk.Kind), i.Name) } return fmt.Sprintf("%s.%s/%s\n", strings.ToLower(gvk.Kind), gvk.Group, i.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 10:17:56 UTC 2023 - 21.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json_test.go
type staticTextMarshaler int func (staticTextMarshaler) MarshalText() ([]byte, error) { return []byte("static"), nil } type testEncodableMap[K comparable] map[K]interface{} func (testEncodableMap[K]) GetObjectKind() schema.ObjectKind { panic("unimplemented") } func (testEncodableMap[K]) DeepCopyObject() runtime.Object { panic("unimplemented") } func TestEncode(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 04 15:55:02 UTC 2024 - 40K bytes - Viewed (0) -
pkg/kube/inject/webhook_test.go
Kind: gvk.Kind, Name: name, Controller: &controller, }} return m } func objectToPod(t testing.TB, obj runtime.Object) *corev1.Pod { gvk := obj.GetObjectKind().GroupVersionKind() defaultConversion := func(template corev1.PodTemplateSpec, name string) *corev1.Pod { template.ObjectMeta = simulateOwnerRef(template.ObjectMeta, name, gvk) return &corev1.Pod{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 39K bytes - Viewed (1) -
staging/src/k8s.io/apiserver/pkg/endpoints/installer.go
var ( warnings []string deprecated bool removedRelease string ) { versionedPtrWithGVK := versionedPtr.DeepCopyObject() versionedPtrWithGVK.GetObjectKind().SetGroupVersionKind(fqKindToRegister) currentMajor, currentMinor, _ := deprecation.MajorMinor(versioninfo.Get()) deprecated = deprecation.IsDeprecated(versionedPtrWithGVK, currentMajor, currentMinor) if deprecated {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 18:15:22 UTC 2024 - 51.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go
} accessor, err := meta.Accessor(example) if err != nil { panic(err) } return &FakeAttributes{ Attributes: admission.NewAttributesRecord( new, old, example.GetObjectKind().GroupVersionKind(), accessor.GetNamespace(), accessor.GetName(), schema.GroupVersionResource{}, "", operation, nil, false, nil, ), } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 25 01:39:01 UTC 2024 - 63.8K bytes - Viewed (0)