Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DeletionObserved (0.36 sec)

  1. pkg/controller/controller_utils.go

    func (r *ControllerExpectations) CreationObserved(logger klog.Logger, controllerKey string) {
    	r.LowerExpectations(logger, controllerKey, 1, 0)
    }
    
    // DeletionObserved atomically decrements the `del` expectation count of the given controller.
    func (r *ControllerExpectations) DeletionObserved(logger klog.Logger, controllerKey string) {
    	r.LowerExpectations(logger, controllerKey, 0, 1)
    }
    
    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("Pod deleted", "delete_by", utilruntime.GetCaller(), "deletion_timestamp", pod.DeletionTimestamp, "pod", klog.KObj(pod))
    	rsc.expectations.DeletionObserved(logger, rsKey, controller.PodKey(pod))
    	rsc.queue.Add(rsKey)
    }
    
    // worker runs a worker thread that just dequeues items, processes them, and marks them done.
    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

    	// There are still delete expectations
    	assert.False(t, e.SatisfiedExpectations(logger, rcKey), "Rc will sync before expectations are met")
    
    	for i := 0; i < dels+1; i++ {
    		wg.Add(1)
    		go func() {
    			e.DeletionObserved(logger, rcKey)
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    
    	tests := []struct {
    		name                      string
    		expectationsToSet         []int
    		expireExpectations        bool
    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