Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetUIDs (0.15 sec)

  1. 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)
  2. 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