- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for SatisfiedExpectations (0.34 sec)
-
pkg/controller/controller_utils_test.go
assert.Equal(t, test.wantExpectationsSatisfied, e.SatisfiedExpectations(logger, rcKey), "Expectations are met but the rc will not sync") if test.expireExpectations { fakeClock.Step(ttl + 1) assert.True(t, e.SatisfiedExpectations(logger, rcKey), "Expectations should have expired but didn'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/controller_utils.go
} } } // SatisfiedExpectations returns true if the required adds/dels for the given controller have been observed. // Add/del counts are established by the controller at sync time, and updated as controllees are observed by the controller // manager. func (r *ControllerExpectations) SatisfiedExpectations(logger klog.Logger, controllerKey string) bool {
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/job/job_controller.go
// and update the expectations after we've retrieved active pods from the store. If a new pod enters // the store after we've checked the expectation, the job sync is just deferred till the next relist. satisfiedExpectations := jm.expectations.SatisfiedExpectations(logger, key) pods, err := jm.getPodsForJob(ctx, &job) if err != nil { return err } var terminating *int32
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller.go
err := dsc.manage(ctx, ds, nodeList, hash) if err != nil { return err } // Process rolling updates if we're ready. if dsc.expectations.SatisfiedExpectations(klog.FromContext(ctx), key) { switch ds.Spec.UpdateStrategy.Type { case apps.OnDeleteDaemonSetStrategyType: case apps.RollingUpdateDaemonSetStrategyType: err = dsc.rollingUpdate(ctx, ds, nodeList, hash)
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/replicaset/replica_set.go
logger.V(4).Info("deleted", "kind", rsc.Kind, "key", key) rsc.expectations.DeleteExpectations(logger, key) return nil } if err != nil { return err } rsNeedsSync := rsc.expectations.SatisfiedExpectations(logger, key) selector, err := metav1.LabelSelectorAsSelector(rs.Spec.Selector) if err != nil { utilruntime.HandleError(fmt.Errorf("error converting pod selector to selector for rs %v/%v: %v", namespace, name, err))
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/replicaset/replica_set_test.go
doTestControllerBurstReplicas(t, 3, 2) } type FakeRSExpectations struct { *controller.ControllerExpectations satisfied bool expSatisfied func() } func (fe FakeRSExpectations) SatisfiedExpectations(logger klog.Logger, controllerKey string) bool { fe.expSatisfied() return fe.satisfied } // TestRSSyncExpectations tests that a pod cannot sneak in between counting active pods
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/daemon/daemon_controller_test.go
dsKey, err := controller.KeyFunc(ds) if err != nil { t.Fatalf("error get DaemonSets controller key: %v", err) } if !manager.expectations.SatisfiedExpectations(logger, dsKey) { t.Errorf("Unsatisfied pod creation expectations. Expected %d", creationExpectations) } } } func TestSimpleDaemonSetUpdatesStatusAfterLaunchingPods(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 111.4K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
} } type FakeJobExpectations struct { *controller.ControllerExpectations satisfied bool expSatisfied func() } func (fe FakeJobExpectations) SatisfiedExpectations(logger klog.Logger, controllerKey string) bool { fe.expSatisfied() return fe.satisfied } // TestSyncJobExpectations tests that a pod cannot sneak in between counting active pods
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0)