Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for UnstructuredList (0.25 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning.go

    		// because the top-level type matches our desired destination type. actually send the object to the converter
    		// to give it a chance to convert the list items if needed.
    		if _, ok := obj.(*unstructured.UnstructuredList); !ok {
    			// avoid conversion roundtrip if GVK is the right one already or is empty (yes, this is a hack, but the old behaviour we rely on in kubectl)
    			objGVK := obj.GetObjectKind().GroupVersionKind()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/etcd.go

    			ret.SetGroupVersionKind(kind)
    			return ret
    		},
    		NewListFunc: func() runtime.Object {
    			// lists are never stored, only manufactured, so stomp in the right kind
    			ret := &unstructured.UnstructuredList{}
    			ret.SetGroupVersionKind(listKind)
    			return ret
    		},
    		PredicateFunc:             strategy.MatchCustomResourceDefinitionStorage,
    		DefaultQualifiedResource:  resource,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  3. 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)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler_test.go

    		if list, err := crdInfo.storages[version.Name].CustomResource.List(ctx, &metainternalversion.ListOptions{}); err != nil {
    			t.Fatal(err)
    		} else {
    			for _, item := range list.(*unstructured.UnstructuredList).Items {
    				if item.GroupVersionKind() != expectGVK {
    					t.Errorf("expected list item to be %#v, got %#v", expectGVK, item.GroupVersionKind())
    				}
    			}
    		}
    
    		if enableWatchCache {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller_test.go

    )
    
    func init() {
    	scheme.AddKnownTypeWithName(fakeGVK, &unstructured.Unstructured{})
    	scheme.AddKnownTypeWithName(fakeGVKList, &unstructured.UnstructuredList{})
    }
    
    func setupTest(ctx context.Context, customReconciler func(string, string, runtime.Object) error) (
    	tracker clienttesting.ObjectTracker,
    	controller generic.Controller[*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)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    			}
    			scheme.AddKnownTypeWithName(mapping.GroupVersionKind, &unstructured.Unstructured{})
    			scheme.AddKnownTypeWithName(mapping.GroupVersionKind.GroupVersion().WithKind(mapping.GroupVersionKind.Kind+"List"), &unstructured.UnstructuredList{})
    		}
    
    		return scheme, nil
    	}()
    	if err != nil {
    		return nil, nil, err
    	}
    
    	fakeRestMapper := func() *meta.DefaultRESTMapper {
    		res := meta.NewDefaultRESTMapper([]schema.GroupVersion{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. operator/pkg/helmreconciler/reconciler.go

    	}), resource.Namespace(h.iop.Spec.GetNamespace()), resource.Namespace(istioV1Alpha1.Namespace(h.iop.Spec)), nil)
    
    	// Add in-cluster webhooks
    	objects := &unstructured.UnstructuredList{}
    	objects.SetGroupVersionKind(gvk.MutatingWebhookConfiguration.Kubernetes())
    	err := h.client.List(context.Background(), objects, &client.ListOptions{})
    	if err != nil {
    		return err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 22 08:32:23 UTC 2024
    - 22K bytes
    - Viewed (0)
Back to top