- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 46 for SetGroupVersionKind (1.02 sec)
-
operator/pkg/helmreconciler/reconciler.go
// Delete the previous IstioOperator CR if it exists. objectKey := client.ObjectKeyFromObject(iop) receiver := &unstructured.Unstructured{} receiver.SetGroupVersionKind(istioV1Alpha1.IstioOperatorGVK) if err := h.client.Get(context.TODO(), objectKey, receiver); err == nil { _ = h.client.Delete(context.TODO(), receiver) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 22 08:32:23 UTC 2024 - 22K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go
err := errors.NewInvalid(schema.GroupKind{Group: metav1.GroupName, Kind: "CreateOptions"}, "", errs) scope.err(err, w, req) return } options.TypeMeta.SetGroupVersionKind(metav1.SchemeGroupVersion.WithKind("CreateOptions")) defaultGVK := scope.Kind original := r.New() validationDirective := fieldValidation(options.FieldValidation) decodeSerializer := s.Serializer
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:19:46 UTC 2023 - 10.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/apiserver_test.go
} m, err := meta.Accessor(&obj) if err != nil { t.Fatal(err) } var encodedV1Beta1Body []byte { partial := meta.AsPartialObjectMetadata(m) partial.GetObjectKind().SetGroupVersionKind(metav1beta1.SchemeGroupVersion.WithKind("PartialObjectMetadata")) encodedBody, err := runtime.Encode(metainternalversionscheme.Codecs.LegacyCodec(metav1beta1.SchemeGroupVersion), partial) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 20:15:22 UTC 2023 - 158.7K bytes - Viewed (0) -
operator/cmd/mesh/manifest_shared_test.go
func getAllIstioObjects() object.K8sObjects { var out object.K8sObjects for _, gvk := range append(allClusterGVKs, allNamespacedGVKs...) { objects := &unstructured.UnstructuredList{} objects.SetGroupVersionKind(gvk) if err := testClient.List(context.TODO(), objects); err != nil { log.Error(err.Error()) continue } for _, o := range objects.Items { no := o.DeepCopy()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Feb 20 22:39:28 UTC 2024 - 11.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/api_meta_meta_test.go
} func (obj *MyAPIObject) GetListMeta() metav1.ListInterface { return &obj.TypeMeta } func (obj *MyAPIObject) GetObjectKind() schema.ObjectKind { return obj } func (obj *MyAPIObject) SetGroupVersionKind(gvk schema.GroupVersionKind) { obj.TypeMeta.APIVersion, obj.TypeMeta.Kind = gvk.ToAPIVersionAndKind() } func (obj *MyAPIObject) GroupVersionKind() schema.GroupVersionKind {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 14 10:11:56 UTC 2022 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go
time.Sleep(time.Second) } // Create and delete a marker object to get a starting resource version { u := &unstructured.Unstructured{Object: map[string]interface{}{}} u.SetGroupVersionKind(schema.GroupVersionKind{Group: "stable.example.com", Version: "v1beta1", Kind: "MultiVersion"}) u.SetName("marker")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 34.6K bytes - Viewed (0) -
pkg/api/testing/defaulting_test.go
// at worst, we will timeout } iter++ src, err := scheme.New(gvk) if err != nil { t.Fatal(err) } f.Fuzz(src) src.GetObjectKind().SetGroupVersionKind(schema.GroupVersionKind{}) original := src.DeepCopyObject() // get internal withDefaults := src.DeepCopyObject() scheme.Default(withDefaults.(runtime.Object))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 20.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/json/json.go
*actual = gvkWithDefaults(*actual, *gvk) } if unk, ok := into.(*runtime.Unknown); ok && unk != nil { unk.Raw = originalData unk.ContentType = runtime.ContentTypeJSON unk.GetObjectKind().SetGroupVersionKind(*actual) return unk, actual, nil } if into != nil { _, isUnstructured := into.(runtime.Unstructured) types, _, err := s.typer.ObjectKinds(into) switch {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 25 16:08:07 UTC 2022 - 12K bytes - Viewed (0) -
operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go
// Watch changes for Istio resources managed by the operator func watchIstioResources(mgrCache cache2.Cache, c controller.Controller) error { for _, t := range watchedResources() { u := &unstructured.Unstructured{} u.SetGroupVersionKind(schema.GroupVersionKind{ Kind: t.Kind, Group: t.Group, Version: t.Version, })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 13:56:46 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/api/testing/unstructured_test.go
t.Fatalf("conversion for %v failed: %v", gvk.Kind, err) } // Decoding into Unstructured requires that apiVersion and kind be // serialized, so populate TypeMeta. item.GetObjectKind().SetGroupVersionKind(gvk) jsonSerializer := jsonserializer.NewSerializerWithOptions(jsonserializer.DefaultMetaFactory, legacyscheme.Scheme, legacyscheme.Scheme, jsonserializer.SerializerOptions{})
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 16.9K bytes - Viewed (0)