Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for DeleteCollection (0.21 sec)

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

    				},
    				{
    					Name:       "cronjobs/status",
    					Namespaced: true,
    					Kind:       "CronJob",
    					Group:      "batch",
    					Version:    "v1",
    					ShortNames: []string{"cj"},
    					Verbs:      []string{"create", "delete", "deletecollection", "get", "list", "patch", "update", "watch"},
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. pkg/registry/batch/job/storage/storage_test.go

    		},
    		{
    			description:   "deleteCollection: no policy, v1, warning",
    			expectWarning: true,
    			deleteOptions: &metav1.DeleteOptions{},
    			listOptions:   &internalversion.ListOptions{},
    			requestInfo:   &genericapirequest.RequestInfo{APIGroup: "batch", APIVersion: "v1"},
    		},
    		{
    			description:   "deleteCollection: no policy, v2, no warning",
    			expectWarning: false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_discovery_controller_test.go

    	Resources: []apidiscoveryv2.APIResourceDiscovery{
    		{
    			Resource:         "coolfoos",
    			Scope:            apidiscoveryv2.ScopeCluster,
    			SingularResource: "coolfoo",
    			Verbs:            []string{"delete", "deletecollection", "get", "list", "patch", "create", "update", "watch"},
    			ShortNames:       []string{"foo"},
    			Categories:       []string{"cool"},
    			ResponseKind: &metav1.GroupVersionKind{
    				Group:   "stable.example.com",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    	return c.client.Delete().
    		Resource("customresourcedefinitions").
    		Name(name).
    		Body(&opts).
    		Do(ctx).
    		Error()
    }
    
    // DeleteCollection deletes a collection of objects.
    func (c *customResourceDefinitions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
    	var timeout time.Duration
    	if listOpts.TimeoutSeconds != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/customresourcedefinition.go

    	return c.client.Delete().
    		Resource("customresourcedefinitions").
    		Name(name).
    		Body(&opts).
    		Do(ctx).
    		Error()
    }
    
    // DeleteCollection deletes a collection of objects.
    func (c *customResourceDefinitions) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
    	var timeout time.Duration
    	if listOpts.TimeoutSeconds != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top