Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for gvr (0.25 sec)

  1. pkg/config/schema/codegen/templates/gvr.go.tmpl

    John Howard <******@****.***> 1701662091 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 03:54:51 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. pkg/kube/kclient/crdwatcher_test.go

    	stop := test.NewStop(t)
    	c := kube.NewFakeClient()
    
    	clienttest.MakeCRD(t, c, gvr.VirtualService)
    	vsCalls := atomic.NewInt32(0)
    
    	clienttest.MakeCRD(t, c, gvr.GatewayClass)
    
    	ctl := c.CrdWatcher()
    	// Created before informer runs
    	assert.Equal(t, ctl.KnownOrCallback(gvr.VirtualService, func(s <-chan struct{}) {
    		assert.Equal(t, s, stop)
    		vsCalls.Inc()
    	}), false)
    
    	c.RunAndWait(stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/config/schema/codegen/templates/gvk.go.tmpl

    {{- end }}
    )
    
    // ToGVR converts a GVK to a GVR.
    func ToGVR(g config.GroupVersionKind) (schema.GroupVersionResource, bool) {
    	switch g {
    {{- range $entry := .Entries }}
    		case {{$entry.Resource.Identifier}}:
    			return gvr.{{$entry.Resource.Identifier}}, true
    	{{- range $alias := .Resource.VersionAliases }}
    		case {{$entry.Resource.Identifier}}_{{$alias}}:
    			return gvr.{{$entry.Resource.Identifier}}_{{$alias}}, true
        {{- end }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 03:54:51 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. pkg/controller/storageversionmigrator/resourceversion.go

    	mapperGVRs, err := rv.mapper.ResourcesFor(gvr)
    	if err != nil {
    		return false, err
    	}
    
    	for _, mapperGVR := range mapperGVRs {
    		if mapperGVR.Group == gvr.Group &&
    			mapperGVR.Version == gvr.Version &&
    			mapperGVR.Resource == gvr.Resource {
    			return true, nil
    		}
    	}
    
    	return false, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. istioctl/pkg/wait/wait_test.go

    			}
    			fc := k.Dynamic().(*dynamicfake.FakeDynamicClient)
    			fc.PrependWatchReactor("*", func(action clienttesting.Action) (handled bool, ret watch.Interface, err error) {
    				gvr := action.GetResource()
    				ns := action.GetNamespace()
    				watch, err := fc.Tracker().Watch(gvr, ns)
    				if err != nil {
    					return false, nil, err
    				}
    				// Kubernetes Fake watches do not add initial state, but real server does
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. pkg/controller/storageversionmigrator/storageversionmigrator.go

    				return err
    			}
    			logger.V(4).Error(err, "Failed to migrate the resource", "name", gvrKey, "gvr", gvr.String(), "reason", apierrors.ReasonForError(err))
    
    			return nil
    			// Todo: add retry for scenarios where API server returns rate limiting error
    		}
    		logger.V(4).Info("Successfully migrated the resource", "name", gvrKey, "gvr", gvr.String())
    	}
    
    	_, err = svmc.kubeClient.StoragemigrationV1alpha1().
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. pkg/config/schema/kubeclient/common.go

    // store to enable dynamic object translation
    func Register[T runtime.Object](
    	gvr schema.GroupVersionResource,
    	gvk schema.GroupVersionKind,
    	list func(c ClientGetter, namespace string, o metav1.ListOptions) (runtime.Object, error),
    	watch func(c ClientGetter, namespace string, o metav1.ListOptions) (watch.Interface, error),
    ) {
    	reg := &internalTypeReg[T]{
    		gvr:   gvr,
    		gvk:   config.FromKubernetesGVK(gvk),
    		list:  list,
    		watch: watch,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. tests/integration/pilot/revisions/uninstall_test.go

    		var reItemList []unstructured.Unstructured
    		for _, gvk := range gvkResources {
    			resources := strings.ToLower(gvk.Kind) + "s"
    			gvr := schema.GroupVersionResource{Group: gvk.Group, Version: gvk.Version, Resource: resources}
    			reList, reStr := getRemainingResourcesCluster(cs, gvr, label)
    			reItemList = append(reItemList, reList...)
    			reStrlist = append(reStrlist, reStr...)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. pkg/config/schema/codegen/templates/clients.go.tmpl

    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/watch"
    	"k8s.io/client-go/tools/cache"
    
    	"istio.io/istio/pkg/config/schema/gvr"
    	"istio.io/istio/pkg/kube/informerfactory"
    	ktypes "istio.io/istio/pkg/kube/kubetypes"
    	"istio.io/istio/pkg/ptr"
    
    	apiistioioapiextensionsv1alpha1 "istio.io/client-go/pkg/apis/extensions/v1alpha1"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. pkg/kube/kclient/clienttest/crd.go

    	kerrors "k8s.io/apimachinery/pkg/api/errors"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	metadatafake "k8s.io/client-go/metadata/fake"
    
    	"istio.io/istio/pkg/config/schema/gvr"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test"
    )
    
    func MakeCRD(t test.Failer, c kube.Client, g schema.GroupVersionResource) {
    	t.Helper()
    	MakeCRDWithAnnotations(t, c, g, nil)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top