Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for deleteCollection (0.37 sec)

  1. 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)
  2. 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)
  3. 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)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    			t.Errorf("Unexpected error: %v", err)
    		}
    	}
    
    	// Delete all pods.
    	deleted, err := registry.DeleteCollection(testContext, rest.ValidateAllObjectFunc, nil, &metainternalversion.ListOptions{})
    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	deletedPods := deleted.(*example.PodList)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/finalizer/crd_finalizer.go

    			continue
    		}
    		// don't retry deleting the same namespace
    		deletedNamespaces.Insert(metadata.GetNamespace())
    		nsCtx := genericapirequest.WithNamespace(ctx, metadata.GetNamespace())
    		if _, err := crClient.DeleteCollection(nsCtx, rest.ValidateAllObjectFunc, nil, nil); err != nil {
    			deleteErrors = append(deleteErrors, err)
    			continue
    		}
    	}
    	if deleteError := utilerrors.NewAggregate(deleteErrors); deleteError != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    				}
    
    			case <-time.After(5 * time.Second):
    				t.Errorf("missing watch event")
    			}
    		}
    
    		// Delete test
    		if err := noxuResourceClient.DeleteCollection(context.TODO(), *metav1.NewDeleteOptions(0), metav1.ListOptions{}); err != nil {
    			t.Fatal(err)
    		}
    	}
    }
    
    func TestInvalidCRUD(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. api/openapi-spec/swagger.json

              "type": "string"
            },
            "verbs": {
              "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "version": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
  8. pkg/registry/core/pod/storage/eviction_test.go

    }
    
    func (ms *mockStore) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error) {
    	return nil, nil
    }
    
    func (ms *mockStore) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternalversion.ListOptions) (runtime.Object, error) {
    	return nil, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 09:26:37 UTC 2024
    - 40K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    				if err := op.Do(ctx); err != nil {
    					t.Fatalf("failed %T operation %v: %v\n%v", op, i, err, op)
    				}
    			}
    
    			// Reset resources
    			err := ctx.DynamicClient.Resource(myCRDV1Beta1).Namespace("default").DeleteCollection(context.TODO(), metav1.DeleteOptions{}, metav1.ListOptions{})
    			if err != nil {
    				t.Fatal(err)
    			}
    		})
    	}
    }
    
    var myCRDV1Beta1 schema.GroupVersionResource = schema.GroupVersionResource{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  10. api/openapi-spec/v3/apis__resource.k8s.io__v1alpha2_openapi.json

                "type": "string"
              },
              "verbs": {
                "description": "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)",
                "items": {
                  "default": "",
                  "type": "string"
                },
                "type": "array"
              },
              "version": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 656.6K bytes
    - Viewed (0)
Back to top