Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for DeleteCollection (0.21 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder.go

    	routes = append(routes, b.buildRoute(root, "", "POST", "post", "create", sample).Reads(sample))
    	routes = append(routes, b.buildRoute(root, "", "DELETE", "deletecollection", "deletecollection", status))
    
    	routes = append(routes, b.buildRoute(root, "/{name}", "GET", "get", "read", sample))
    	routes = append(routes, b.buildRoute(root, "/{name}", "PUT", "put", "replace", sample).Reads(sample))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/request/requestinfo.go

    					requestInfo.Name = name
    				}
    			}
    		}
    	}
    	// if there's no name on the request and we thought it was a delete before, then the actual verb is deletecollection
    	if len(requestInfo.Name) == 0 && requestInfo.Verb == "delete" {
    		requestInfo.Verb = "deletecollection"
    	}
    
    	return &requestInfo, nil
    }
    
    type requestInfoKeyType int
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 23 13:24:29 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller.go

    			continue
    		}
    		foundVersion = true
    
    		verbs := metav1.Verbs([]string{"delete", "deletecollection", "get", "list", "patch", "create", "update", "watch"})
    		// if we're terminating we don't allow some verbs
    		if apiextensionshelpers.IsCRDConditionTrue(crd, apiextensionsv1.Terminating) {
    			verbs = metav1.Verbs([]string{"delete", "deletecollection", "get", "list", "watch"})
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 21 11:40:03 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/rest/rest.go

    // of RESTful resources.
    type CollectionDeleter interface {
    	// DeleteCollection selects all resources in the storage matching given 'listOptions'
    	// and deletes them. The delete attempt is validated by the deleteValidation first.
    	// If 'options' are provided, the resource will attempt to honor them or return an
    	// invalid request error.
    	// DeleteCollection may not be atomic - i.e. it may delete some objects and still
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. cluster/gce/gci/audit_policy_test.go

    	at.testResources(request, kubelet, node, npd, npdSA, "update", "patch", nodeStatus, podStatus)
    
    	at.testResources(request, namespaceController, "deletecollection", pods, namespaces)
    
    	at.testResources(metadata, defaultSA, anonymous, npd, namespaceController, "get", "create", "update", secrets, configmaps, sysConfigmaps, tokenReviews)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:23:50 UTC 2021
    - 9.8K bytes
    - Viewed (0)
Back to top