Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 139 for DeleteCollection (0.38 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    var toDiscoveryKubeVerb = map[string]string{
    	"CONNECT":          "", // do not list in discovery.
    	"DELETE":           "delete",
    	"DELETECOLLECTION": "deletecollection",
    	"GET":              "get",
    	"LIST":             "list",
    	"PATCH":            "patch",
    	"POST":             "create",
    	"PROXY":            "proxy",
    	"PUT":              "update",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/audit_test.go

    	ac := audit.AuditContextFrom(ctx)
    	ac.Event.Level = auditinternal.LevelMetadata
    	auditHandler := WithAudit(handler)
    	a := attributes()
    
    	// Simulate the scenario store.DeleteCollection
    	workers := 2
    	wg := &sync.WaitGroup{}
    	wg.Add(workers)
    	for i := 0; i < workers; i++ {
    		go func() {
    			defer wg.Done()
    			mutator, ok := handler.(MutationInterface)
    			require.True(t, ok)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/openapi/openapi.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/kube-openapi/pkg/util"
    	"k8s.io/kube-openapi/pkg/validation/spec"
    )
    
    var verbs = util.NewTrie([]string{"get", "log", "read", "replace", "patch", "delete", "deletecollection", "watch", "connect", "proxy", "list", "create", "patch"})
    
    const (
    	extensionGVK = "x-kubernetes-group-version-kind"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go

    			},
    		}...)
    	}
    
    	t.Run("watch", func(t *testing.T) {
    		testWatch(ctx, t, tcs, dynamicClient)
    	})
    	t.Run("list", func(t *testing.T) {
    		testList(ctx, t, tcs, dynamicClient)
    	})
    	t.Run("deleteCollection", func(t *testing.T) {
    		testDeleteCollection(ctx, t, tcs, dynamicClient)
    	})
    }
    
    func testWatch(ctx context.Context, t *testing.T, tcs []selectableFieldTestCase, dynamicClient dynamic.Interface) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:53:03 UTC 2024
    - 27K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker.go

    // contain the Name field set. Figure out if we can somehow get it for the
    // more accurate cost estimation.
    //
    // TODO(wojtek-t): Figure out how to approach DELETECOLLECTION calls.
    func (w *watchTracker) GetInterestedWatchCount(requestInfo *request.RequestInfo) int {
    	if requestInfo == nil || readOnlyVerbs.Has(requestInfo.Verb) {
    		return 0
    	}
    
    	result := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  6. pkg/apis/rbac/helpers_test.go

    			urls:       nil,
    			expected:   false,
    			policyRule: rbac.PolicyRule{},
    		},
    		{
    			testName:   "resourceNames with illegal verb",
    			verbs:      []string{"list", "watch", "create", "deletecollection"},
    			groups:     []string{""},
    			resources:  []string{"pod"},
    			names:      []string{"gakki"},
    			urls:       nil,
    			expected:   false,
    			policyRule: rbac.PolicyRule{},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  7. pkg/controller/testutil/test_utils.go

    			m.DeleteWaitChan <- struct{}{}
    		}
    		m.lock.Unlock()
    	}()
    	m.DeletedNodes = append(m.DeletedNodes, NewNode(id))
    	return nil
    }
    
    // DeleteCollection deletes a collection of Nodes from the fake store.
    func (m *FakeNodeHandler) DeleteCollection(_ context.Context, opt metav1.DeleteOptions, listOpts metav1.ListOptions) error {
    	return nil
    }
    
    // Update updates a Node in the fake store.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. tests/integration/operator/switch_cr_test.go

    	var err error
    	// clean up dynamically created secret and configmaps
    	if e := cs.Kube().CoreV1().Secrets(IstioNamespace).DeleteCollection(
    		context.Background(), metav1.DeleteOptions{}, metav1.ListOptions{}); e != nil {
    		err = multierror.Append(err, e)
    	}
    	if e := cs.Kube().CoreV1().ConfigMaps(IstioNamespace).DeleteCollection(
    		context.Background(), metav1.DeleteOptions{}, metav1.ListOptions{}); e != nil {
    		err = multierror.Append(err, e)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/dra/plugin/noderesources.go

    	//   because no plugin has registered yet. We could do a DeleteCollection
    	//   to speed this up.
    	// - Wait a bit, then sync. If all plugins have re-registered in the meantime,
    	//   we might not need to change any ResourceSlice.
    	//
    	// For now syncing starts immediately, with no DeleteCollection. This
    	// can be reconsidered later.
    
    	// Wait until we're able to get a Node object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 20:12:53 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go

    				"/apis/foo-group/foo-version/namespaces/{namespace}/foos":               {expectNamespaceParam: true, expectNameParam: false, expectedActions: sets.NewString("post", "list", "deletecollection")},
    				"/apis/foo-group/foo-version/namespaces/{namespace}/foos/{name}":        {expectNamespaceParam: true, expectNameParam: true, expectedActions: sets.NewString("get", "put", "patch", "delete")},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top