- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetUIDs (0.26 sec)
-
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) -
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) -
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)