Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetUIDs (0.1 sec)

  1. pkg/controller/job/tracking_utils.go

    	key string
    }
    
    // uidTrackingExpectations tracks the UIDs of Pods the controller is waiting to
    // observe tracking finalizer deletions.
    type uidTrackingExpectations struct {
    	store cache.Store
    }
    
    // GetUIDs is a convenience method to avoid exposing the set of expected uids.
    // The returned set is not thread safe, all modifications must be made holding
    // the uidStoreLock.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. pkg/controller/controller_utils.go

    	// ControllerExpectationsInterface.
    	uidStore cache.Store
    }
    
    // GetUIDs is a convenience method to avoid exposing the set of expected uids.
    // The returned set is not thread safe, all modifications must be made holding
    // the uidStoreLock.
    func (u *UIDTrackingControllerExpectations) GetUIDs(controllerKey string) sets.String {
    	if uid, exists, err := u.uidStore.GetByKey(controllerKey); err == nil && exists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  3. pkg/controller/replicaset/replica_set_test.go

    				if err != nil {
    					t.Fatal(err)
    				}
    
    				// To accurately simulate a watch we must delete the exact pods
    				// the rs is waiting for.
    				expectedDels := manager.expectations.GetUIDs(GetKey(rsSpec, t))
    				podsToDelete := []*v1.Pod{}
    				isController := true
    				for _, key := range expectedDels.List() {
    					nsName := strings.Split(key, "/")
    					podsToDelete = append(podsToDelete, &v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  4. pkg/controller/controller_utils_test.go

    			}
    
    			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) {
    	ns := metav1.NamespaceDefault
    	generateName := "hello-"
    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