Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for gvr (0.04 sec)

  1. security/pkg/k8s/configutil_test.go

    			meta:              metav1.ObjectMeta{Namespace: namespaceName, Name: configMapName},
    			expectedActions: []ktesting.Action{
    				ktesting.NewGetAction(gvr, namespaceName, configMapName),
    				ktesting.NewGetAction(gvr, namespaceName, configMapName),
    				ktesting.NewCreateAction(gvr, namespaceName, createConfigMap(namespaceName, configMapName,
    					map[string]string{dataName: "test-data"})),
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 08 21:58:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    		if _, ok := object.(*unstructured.Unstructured); ok {
    			if err := p.unstructuredTracker.Create(gvr, object, objectMeta.GetNamespace()); err != nil {
    				if errors.IsAlreadyExists(err) {
    					return p.unstructuredTracker.Update(gvr, object, objectMeta.GetNamespace())
    				}
    				return err
    			}
    			return nil
    		} else if err := p.nativeTracker.Create(gvr, object, objectMeta.GetNamespace()); err != nil {
    			if errors.IsAlreadyExists(err) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storageversion/manager.go

    	}
    }
    
    func (s *defaultManager) addPendingManagedStatusLocked(r *ResourceInfo) {
    	gvrs := r.EquivalentResourceMapper.EquivalentResourcesFor(r.GroupResource.WithVersion(""), "")
    	for _, gvr := range gvrs {
    		gr := gvr.GroupResource()
    		if _, ok := s.managedStatus[gr]; !ok {
    			s.managedStatus[gr] = &updateStatus{}
    		}
    	}
    }
    
    // UpdateStorageVersions tries to update the StorageVersions of the recorded resources
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 17:47:19 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  4. pilot/pkg/config/kube/gateway/deploymentcontroller.go

    func (d *DeploymentController) canManage(gvr schema.GroupVersionResource, name, namespace string) (bool, string) {
    	store, f := d.clients[gvr]
    	if !f {
    		log.Warnf("unknown GVR %v", gvr)
    		// Even though we don't know what it is, allow users to put the resource. We won't be able to
    		// protect against overwrites though.
    		return true, ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 21:43:20 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. pkg/controller/resourcequota/resource_quota_controller_test.go

    			}
    		}
    	}
    }
    
    func TestAddQuota(t *testing.T) {
    	kubeClient := fake.NewSimpleClientset()
    	gvr := v1.SchemeGroupVersion.WithResource("pods")
    	listersForResourceConfig := map[schema.GroupVersionResource]cache.GenericLister{
    		gvr: newGenericLister(gvr.GroupResource(), newTestPods()),
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 16:29:33 UTC 2023
    - 42.6K bytes
    - Viewed (0)
  6. pkg/controlplane/instance_test.go

    	for gvr, enable := range config.ResourceConfigs {
    		if !strings.Contains(gvr.Version, "beta") {
    			continue // only check beta things
    		}
    		if !enable {
    			continue // only check things that are enabled
    		}
    		if legacyEnabledBetaResources[gvr] {
    			continue // this is a legacy beta resource
    		}
    		if legacyBetaResourcesWithoutStableEquivalents[gvr.GroupResource()] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go

    		gvr.AuthorizationPolicy, kubetypes.StandardInformer, filter)
    	AuthzPolicies := krt.WrapClient[*securityclient.AuthorizationPolicy](authzPolicies, krt.WithName("AuthorizationPolicies"))
    
    	peerAuths := kclient.NewDelayedInformer[*securityclient.PeerAuthentication](options.Client,
    		gvr.PeerAuthentication, kubetypes.StandardInformer, filter)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 19 17:19:41 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. pkg/controller/resourcequota/resource_quota_monitor.go

    		return true
    	}
    	klog.FromContext(ctx).V(4).Info("QuotaMonitor process object",
    		"resource", event.gvr.String(),
    		"namespace", accessor.GetNamespace(),
    		"name", accessor.GetName(),
    		"uid", string(accessor.GetUID()),
    		"eventType", event.eventType,
    	)
    	qm.replenishmentFunc(ctx, event.gvr.GroupResource(), accessor.GetNamespace())
    	return true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter.go

    	// Attempting to use same logic as webhook for constructing resource
    	// GVK, GVR, subresource
    	// Use the GVK, GVR that the matcher decided was equivalent to that of the request
    	// https://github.com/kubernetes/kubernetes/blob/90c362b3430bcbbf8f245fadbcd521dab39f1d7c/staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook.go#L182-L210
    	gvk := equivalentKind
    	gvr := equivalentGVR
    	subresource := attr.GetSubresource()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  10. tests/integration/operator/switch_cr_test.go

    	scopes.Framework.Info("cleaning up in-cluster CRs")
    	gvr := iopv1alpha1.IstioOperatorGVR
    	crList, err := cs.Dynamic().Resource(gvr).Namespace(IstioNamespace).List(context.TODO(),
    		metav1.ListOptions{})
    	if err == nil {
    		for _, obj := range crList.Items {
    			t.Logf("deleting CR %v", obj.GetName())
    			if err := cs.Dynamic().Resource(gvr).Namespace(IstioNamespace).Delete(context.TODO(), obj.GetName(),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top