Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 79 for gvr (0.02 sec)

  1. pkg/quota/v1/evaluator/core/pods_test.go

    			},
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			gvr := corev1.SchemeGroupVersion.WithResource("pods")
    			listerForPod := map[schema.GroupVersionResource]cache.GenericLister{
    				gvr: newGenericLister(gvr.GroupResource(), tt.objs),
    			}
    			evaluator := NewPodEvaluator(mockListerForResourceFunc(listerForPod), testingclock.NewFakeClock(time.Now()))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go

    func RecordWatchListLatency(ctx context.Context, gvr schema.GroupVersionResource, metricsScope string) {
    	requestReceivedTimestamp, ok := request.ReceivedTimestampFrom(ctx)
    	if !ok {
    		utilruntime.HandleError(fmt.Errorf("unable to measure watchlist latency because no received ts found in the ctx, gvr: %s", gvr))
    		return
    	}
    	elapsedSeconds := time.Since(requestReceivedTimestamp).Seconds()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 07:29:19 UTC 2023
    - 35K bytes
    - Viewed (0)
  3. pilot/pkg/config/kube/crdclient/client.go

    	var kc kclient.Untyped
    	if s.IsBuiltin() {
    		kc = kclient.NewUntypedInformer(cl.client, gvr, filter)
    	} else {
    		kc = kclient.NewDelayedInformer[controllers.Object](
    			cl.client,
    			gvr,
    			kubetypes.StandardInformer,
    			filter,
    		)
    	}
    
    	kind := s.Kind()
    	kc.AddEventHandler(controllers.EventHandler[controllers.Object]{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 00:12:28 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go

    		count := 0
    		for _, group := range groups {
    			for _, version := range versions {
    				for _, resource := range resources {
    					gvr := schema.GroupVersionResource{
    						Group:    group,
    						Version:  version,
    						Resource: resource,
    					}
    					resolved, err := c.RestMapper.KindsFor(gvr)
    					if err != nil {
    						if restMapperRefreshAttempted {
    							// RESTMapper refresh happens at most once per policy
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/network_test.go

    	meshconfig "istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pilot/pkg/features"
    	"istio.io/istio/pilot/pkg/model"
    	"istio.io/istio/pkg/config/constants"
    	"istio.io/istio/pkg/config/mesh"
    	"istio.io/istio/pkg/config/schema/gvr"
    	"istio.io/istio/pkg/kube/controllers"
    	"istio.io/istio/pkg/kube/kclient"
    	"istio.io/istio/pkg/kube/kclient/clienttest"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. pkg/kube/controllers/common.go

    type ComparableObject interface {
    	comparable
    	Object
    }
    
    // IsNil works around comparing generic types
    func IsNil[O ComparableObject](o O) bool {
    	var t O
    	return o == t
    }
    
    // UnstructuredToGVR extracts the GVR of an unstructured resource. This is useful when using dynamic
    // clients.
    func UnstructuredToGVR(u unstructured.Unstructured) (schema.GroupVersionResource, error) {
    	res := schema.GroupVersionResource{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    type applyPatchOperation struct {
    	description string
    	gvr         schema.GroupVersionResource
    	name        string
    	patch       interface{}
    }
    
    func (a applyPatchOperation) Do(ctx *ratchetingTestContext) error {
    	// Lookup GVK from discovery
    	kind, ok := fakeRESTMapper[a.gvr]
    	if !ok {
    		return fmt.Errorf("no mapping found for Gvr %v, add entry to fakeRESTMapper", a.gvr)
    	}
    
    	patch := &unstructured.Unstructured{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  8. pilot/pkg/status/manager.go

    		scope.Debugf("retrieving config for status update: %s/%s", resource.Namespace, resource.Name)
    		k, ok := gvk.FromGVR(resource.GroupVersionResource)
    		if !ok {
    			scope.Warnf("GVR %v could not be identified", resource.GroupVersionResource)
    			return nil
    		}
    
    		current := store.Get(k, resource.Name, resource.Namespace)
    		return current
    	}
    	return &Manager{
    		store:   store,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  9. pkg/config/schema/codegen/collections.go

    	"istio.io/istio/pkg/config/schema/ast"
    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/pkg/util/sets"
    )
    
    //go:embed templates/gvk.go.tmpl
    var gvkTemplate string
    
    //go:embed templates/gvr.go.tmpl
    var gvrTemplate string
    
    //go:embed templates/crdclient.go.tmpl
    var crdclientTemplate string
    
    //go:embed templates/types.go.tmpl
    var typesTemplate string
    
    //go:embed templates/clients.go.tmpl
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. operator/pkg/helmreconciler/reconciler.go

    		}
    		var ogvr schema.GroupVersionResource
    		if obj.GetKind() == name.MutatingWebhookConfigurationStr {
    			ogvr = gvr.MutatingWebhookConfiguration
    		} else if obj.GetKind() == name.ValidatingWebhookConfigurationStr {
    			ogvr = gvr.ValidatingWebhookConfiguration
    		}
    
    		t := true
    		_, err := kubeClient.Dynamic().Resource(ogvr).Namespace(obj.GetNamespace()).Patch(
    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