Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 79 for gvr (0.02 sec)

  1. pkg/config/schema/collection/schemas.go

    			}
    		}
    	}
    	return nil, false
    }
    
    // FindByGroupVersionResource searches and returns the first schema with the given GVR
    func (s Schemas) FindByGroupVersionResource(gvr schema.GroupVersionResource) (resource.Schema, bool) {
    	for _, rs := range s.byAddOrder {
    		if rs.GroupVersionResource() == gvr {
    			return rs, true
    		}
    	}
    
    	return nil, false
    }
    
    // All returns all known Schemas
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 01 08:10:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. pkg/registry/admissionregistration/validatingadmissionpolicybinding/authz.go

    			// we only need to authorize the parsed group/version
    			apiGroup = gv.Group
    			apiVersion = gv.Version
    			if gvr, err := v.resourceResolver.Resolve(gv.WithKind(paramKind.Kind)); err == nil {
    				// we only need to authorize the resolved resource
    				resource = gvr.Resource
    			}
    		}
    	}
    
    	var attrs authorizer.AttributesRecord
    
    	paramRef := binding.Spec.ParamRef
    	verb := "get"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 12:19:03 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. pilot/test/xds/fake.go

    			MeshWatcher:     mesh.NewFixedWatcher(m),
    			CRDs: []schema.GroupVersionResource{
    				// Install all CRDs used (mostly in Ambient)
    				gvr.AuthorizationPolicy,
    				gvr.PeerAuthentication,
    				gvr.KubernetesGateway,
    				gvr.KubernetesGateway,
    				gvr.WorkloadEntry,
    				gvr.ServiceEntry,
    			},
    		})
    		stop := test.NewStop(t)
    		// start default client informers after creating ingress/secret controllers
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. pkg/config/schema/codegen/common.go

    			"Entries":     inp.Entries,
    			"PackageName": "gvk",
    		}),
    		writeTemplate("pkg/config/schema/gvr/resources.gen.go", gvrTemplate, map[string]any{
    			"Entries":     gvrEntries,
    			"PackageName": "gvr",
    		}),
    		writeTemplate("pilot/pkg/config/kube/crdclient/types.gen.go", crdclientTemplate, map[string]any{
    			"Entries":     inp.Entries,
    			"Packages":    inp.Packages,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator.go

    	return func(gvr schema.GroupVersionResource) (cache.GenericLister, error) {
    		informer, err := f(gvr)
    		if err != nil {
    			return nil, err
    		}
    		return &protectedLister{
    			hasSynced:   cachedHasSynced(informer.Informer().HasSynced),
    			notReadyErr: fmt.Errorf("%v not yet synced", gvr),
    			delegate:    informer.Lister(),
    		}, nil
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 05 00:02:47 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  6. pilot/pkg/config/kube/gateway/deploymentcontroller_test.go

    	}
    
    	d.patcher = func(g schema.GroupVersionResource, name string, namespace string, data []byte, subresources ...string) error {
    		if g == gvr.Service {
    			reconciles.Inc()
    		}
    		if g == gvr.KubernetesGateway {
    			b, err := yaml.JSONToYAML(data)
    			if err != nil {
    				return err
    			}
    			writes <- string(b)
    		}
    		return nil
    	}
    	stop := test.NewStop(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

    	}
    
    	return c.dispatcher.Dispatch(ctx, a, o, c.source.Hooks())
    }
    
    func (c *Plugin[H]) shouldIgnoreResource(attr admission.Attributes) bool {
    	gvr := attr.GetResource()
    	// exclusion decision ignores the version.
    	gr := gvr.GroupResource()
    	return c.excludedResources.Has(gr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. pkg/registry/admissionregistration/resolver/resolver.go

    	client discovery.DiscoveryInterface
    }
    
    func (d *discoveryResourceResolver) Resolve(gvk schema.GroupVersionKind) (schema.GroupVersionResource, error) {
    	gv := gvk.GroupVersion()
    	// TODO: refactor this into an efficient gvk --> gvr resolver that remembers hits and re-resolves group/version info on misses
    	resources, err := d.client.ServerResourcesForGroupVersion(gv.String())
    	if err != nil {
    		return schema.GroupVersionResource{}, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 21:29:56 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. pkg/kube/kclient/crdwatcher.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apimachinery/pkg/types"
    	"sigs.k8s.io/gateway-api/pkg/consts"
    
    	"istio.io/istio/pilot/pkg/features"
    	"istio.io/istio/pkg/config/schema/gvr"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/kube/controllers"
    	"istio.io/istio/pkg/kube/kubetypes"
    	"istio.io/istio/pkg/log"
    )
    
    type crdWatcher struct {
    	crds      Informer[*metav1.PartialObjectMetadata]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  10. pkg/config/schema/kubetypes/common.go

    	"istio.io/istio/pkg/typemap"
    )
    
    func MustGVRFromType[T runtime.Object]() schema.GroupVersionResource {
    	if gk, ok := getGvk(ptr.Empty[T]()); ok {
    		gr, ok := gvk.ToGVR(gk)
    		if !ok {
    			panic(fmt.Sprintf("unknown GVR for GVK %v", gk))
    		}
    		return gr
    	}
    	if rp := typemap.Get[RegisterType[T]](registeredTypes); rp != nil {
    		return (*rp).GetGVR()
    	}
    	panic("unknown kind: " + ptr.TypeName[T]())
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top