Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DeleteExpectations (0.15 sec)

  1. pkg/controller/controller_utils.go

    		uids.Delete(deleteKey)
    	}
    }
    
    // DeleteExpectations deletes the UID set and invokes DeleteExpectations on the
    // underlying ControllerExpectationsInterface.
    func (u *UIDTrackingControllerExpectations) DeleteExpectations(logger klog.Logger, rcKey string) {
    	u.uidStoreLock.Lock()
    	defer u.uidStoreLock.Unlock()
    
    	u.ControllerExpectationsInterface.DeleteExpectations(logger, rcKey)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  2. pkg/controller/replicaset/replica_set.go

    		return
    	}
    
    	logger.V(4).Info("Deleting", "replicaSet", klog.KObj(rs))
    
    	// Delete expectations for the ReplicaSet so if we create a new one with the same name it starts clean
    	rsc.expectations.DeleteExpectations(logger, key)
    
    	rsc.queue.Add(key)
    }
    
    // When a pod is created, enqueue the replica set that manages it and update its expectations.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. pkg/controller/controller_utils_test.go

    				uidExp.DeletionObserved(logger, rcKey, p)
    			}
    
    			assert.True(t, uidExp.SatisfiedExpectations(logger, rcKey),
    				"Controller %v didn't satisfy expectations after deletion", rcKey)
    
    			uidExp.DeleteExpectations(logger, rcKey)
    
    			assert.Nil(t, uidExp.GetUIDs(rcKey),
    				"Failed to delete uid expectations for %v", rcKey)
    		})
    	}
    }
    
    func TestCreatePodsWithGenerateName(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 39.4K bytes
    - Viewed (0)
Back to top