- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for deleteExpectations (0.25 sec)
-
pkg/controller/job/tracking_utils.go
logger.V(4).Info("Observed tracking finalizer removed", "key", jobKey, "podUID", deleteKey) uids.set.Delete(deleteKey) } uids.Unlock() } } // DeleteExpectations deletes the UID set. func (u *uidTrackingExpectations) deleteExpectations(logger klog.Logger, jobKey string) { set := u.getSet(jobKey) if set != nil { if err := u.store.Delete(set); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 14 05:40:02 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/controller/job/tracking_utils_test.go
} else if diff := cmp.Diff(track.secondRound, sets.List(uids.set)); diff != "" { t.Errorf("Unexpected keys for job %s (-want,+got):\n%s", track.job, diff) } } for _, track := range tracks { expectations.deleteExpectations(logger, track.job) uids := expectations.getSet(track.job) if uids != nil { t.Errorf("Wanted expectations for job %s to be cleared, but they were not", track.job) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 14 05:40:02 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/controller/controller_utils.go
uids.Delete(deleteKey) } } // DeleteExpectations deletes the UID set and invokes DeleteExpectations on the // underlying ControllerExpectationsInterface. func (u *UIDTrackingControllerExpectations) DeleteExpectations(logger klog.Logger, rcKey string) { u.uidStoreLock.Lock() defer u.uidStoreLock.Unlock() u.ControllerExpectationsInterface.DeleteExpectations(logger, rcKey)
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.go
return } logger.V(4).Info("Deleting", "replicaSet", klog.KObj(rs)) // Delete expectations for the ReplicaSet so if we create a new one with the same name it starts clean rsc.expectations.DeleteExpectations(logger, key) rsc.queue.Add(key) } // When a pod is created, enqueue the replica set that manages it and update its expectations.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.2K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller.go
return } // Delete expectations for the DaemonSet so if we create a new one with the same name it starts clean dsc.expectations.DeleteExpectations(logger, key) dsc.queue.Add(key) } // Run begins watching and syncing daemon sets. func (dsc *DaemonSetsController) Run(ctx context.Context, workers int) { defer utilruntime.HandleCrash()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 51.3K bytes - Viewed (0) -
pkg/controller/controller_utils_test.go
uidExp.DeletionObserved(logger, rcKey, p) } 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) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 39.4K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
} sharedJob, err := jm.jobLister.Jobs(ns).Get(name) if err != nil { if apierrors.IsNotFound(err) { logger.V(4).Info("Job has been deleted", "key", key) jm.expectations.DeleteExpectations(logger, key) jm.finalizerExpectations.deleteExpectations(logger, key) err := jm.podBackoffStore.removeBackoffRecord(key) if err != nil { // re-syncing here as the record has to be removed for finished/deleted jobs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (1) -
pkg/controller/daemon/daemon_controller_test.go
fakePodControl.Clear() logger, _ := ktesting.NewTestContext(t) key, err := controller.KeyFunc(ds) if err != nil { t.Errorf("Could not get key for daemon.") return } manager.expectations.DeleteExpectations(logger, key) now := manager.failedPodsBackoff.Clock.Now() hash, _ := currentDSHash(manager, ds) // log all the pods in the store var lines []string for _, obj := range manager.podStore.List() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 111.4K bytes - Viewed (0)