Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for deleteAction (0.18 sec)

  1. internal/bucket/lifecycle/lifecycle_test.go

    			objectName:     "foxdir/fooobject/foo.txt",
    			objectModTime:  time.Now().UTC().Add(-10 * 24 * time.Hour), // Created 10 days ago
    			expectedAction: DeleteAction,
    		},
    		// Too early to remove (test Days)
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle.go

    type Action int
    
    //go:generate stringer -type Action $GOFILE
    
    const (
    	// NoneAction means no action required after evaluating lifecycle rules
    	NoneAction Action = iota
    	// DeleteAction means the object needs to be removed after evaluating lifecycle rules
    	DeleteAction
    	// DeleteVersionAction deletes a particular version
    	DeleteVersionAction
    	// TransitionAction transitions a particular object after evaluating lifecycle transition rules
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. pkg/controller/podgc/gc_controller_test.go

    			var patchAction clienttesting.PatchAction
    			var deleteAction clienttesting.DeleteAction
    
    			for _, action := range actions {
    				if action.GetVerb() == "patch" {
    					patchAction = action.(clienttesting.PatchAction)
    				}
    
    				if action.GetVerb() == "delete" {
    					deleteAction = action.(clienttesting.DeleteAction)
    				}
    			}
    
    			if patchAction != nil && test.expectedPatchedPod == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/action_string.go

    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[NoneAction-0]
    	_ = x[DeleteAction-1]
    	_ = x[DeleteVersionAction-2]
    	_ = x[TransitionAction-3]
    	_ = x[TransitionVersionAction-4]
    	_ = x[DeleteRestoredAction-5]
    	_ = x[DeleteRestoredVersionAction-6]
    	_ = x[DeleteAllVersionsAction-7]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. pkg/controller/tainteviction/taint_eviction_test.go

    					for _, action := range fakeClientset.Actions() {
    						deleteAction, ok := action.(clienttesting.DeleteActionImpl)
    						if !ok {
    							t.Logf("Found not-delete action with verb %v. Ignoring.", action.GetVerb())
    							continue
    						}
    						if deleteAction.GetResource().Resource != "pods" {
    							continue
    						}
    						if podName == deleteAction.GetName() {
    							deleted = true
    						}
    					}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  6. pkg/controlplane/controller/clusterauthenticationtrust/cluster_authentication_trust_controller_test.go

    		if err == nil || err.Error() != "Request entity too large: way too big" {
    			t.Fatal(err)
    		}
    		if len(client.Actions()) != 2 {
    			t.Fatal(client.Actions())
    		}
    		_, ok := client.Actions()[1].(clienttesting.DeleteAction)
    		if !ok {
    			t.Fatal(client.Actions())
    		}
    	})
    
    	t.Run("ca bundle too large", func(t *testing.T) {
    		client := fake.NewSimpleClientset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  7. pkg/controller/deployment/sync_test.go

    		for _, action := range fake.Actions() {
    			deleteAction, ok := action.(testclient.DeleteActionImpl)
    			if !ok {
    				t.Logf("Found not-delete action with verb %v. Ignoring.", action.GetVerb())
    				continue
    			}
    
    			if deleteAction.GetResource().Resource != "replicasets" {
    				continue
    			}
    
    			deletedRSs.Insert(deleteAction.GetName())
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  8. pkg/controller/volume/persistentvolume/testing/testing.go

    			return true, nil, nil
    		}
    		return true, nil, fmt.Errorf("cannot delete volume %s: not found", name)
    
    	case action.Matches("delete", "persistentvolumeclaims"):
    		name := action.(core.DeleteAction).GetName()
    		nameSpace := action.(core.DeleteAction).GetNamespace()
    		logger.V(4).Info("Deleted claim", "PVC", klog.KRef(nameSpace, name))
    		obj, found := r.claims[name]
    		if found {
    			delete(r.claims, name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/cidrallocator_test.go

    		return false, cidr, err
    	}))
    	client.PrependReactor("delete", "servicecidrs", k8stesting.ReactionFunc(func(action k8stesting.Action) (bool, runtime.Object, error) {
    		name := action.(k8stesting.DeleteAction).GetName()
    		obj, exists, err := serviceCIDRStore.GetByKey(name)
    		cidr := &networkingv1alpha1.ServiceCIDR{}
    		if exists && err == nil {
    			cidr = obj.(*networkingv1alpha1.ServiceCIDR)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  10. pkg/registry/core/service/ipallocator/controller/repairip_test.go

    	}))
    	fakeClient.PrependReactor("delete", "ipaddresses", k8stesting.ReactionFunc(func(action k8stesting.Action) (bool, runtime.Object, error) {
    		ip := action.(k8stesting.DeleteAction).GetName()
    		err := ipIndexer.Delete(ip)
    		return false, &networkingv1alpha1.IPAddress{}, err
    	}))
    
    	r := NewRepairIPAddress(0*time.Second,
    		fakeClient,
    		serviceInformer,
    		serviceCIDRInformer,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 20.3K bytes
    - Viewed (0)
Back to top