mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #43208 from NickrenREN/rc-expectation
Automatic merge from submit-queue
small change to ControlleeExpectations result judgement
GetByKey() will never return err, so err != nil {} is redundant,remove it and remove the err return too
**Release note**:
```release-note
NONE
```
			
			
This commit is contained in:
		@@ -155,6 +155,7 @@ func (r *ControllerExpectations) DeleteExpectations(controllerKey string) {
 | 
			
		||||
func (r *ControllerExpectations) SatisfiedExpectations(controllerKey string) bool {
 | 
			
		||||
	if exp, exists, err := r.GetExpectations(controllerKey); exists {
 | 
			
		||||
		if exp.Fulfilled() {
 | 
			
		||||
			glog.V(4).Infof("Controller expectations fulfilled %#v", exp)
 | 
			
		||||
			return true
 | 
			
		||||
		} else if exp.isExpired() {
 | 
			
		||||
			glog.V(4).Infof("Controller expectations expired %#v", exp)
 | 
			
		||||
@@ -284,7 +285,7 @@ type UIDSet struct {
 | 
			
		||||
// UIDTrackingControllerExpectations tracks the UID of the pods it deletes.
 | 
			
		||||
// This cache is needed over plain old expectations to safely handle graceful
 | 
			
		||||
// deletion. The desired behavior is to treat an update that sets the
 | 
			
		||||
// DeletionTimestamp on an object as a delete. To do so consistenly, one needs
 | 
			
		||||
// DeletionTimestamp on an object as a delete. To do so consistently, one needs
 | 
			
		||||
// to remember the expected deletes so they aren't double counted.
 | 
			
		||||
// TODO: Track creates as well (#22599)
 | 
			
		||||
type UIDTrackingControllerExpectations struct {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user