mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Rename podUpdates updates param -> podUpdatesBypass
This commit is contained in:
parent
91c5c2d3b6
commit
12efba8ce8
Binary file not shown.
@ -63,8 +63,8 @@ func New(c *config.Config, fw framework.Framework, ps podschedulers.PodScheduler
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Watch and queue pods that need scheduling.
|
// Watch and queue pods that need scheduling.
|
||||||
updates := make(chan queue.Entry, c.UpdatesBacklog)
|
podUpdatesBypass := make(chan queue.Entry, c.UpdatesBacklog)
|
||||||
podUpdates := &podStoreAdapter{queue.NewHistorical(updates)}
|
podUpdates := &podStoreAdapter{queue.NewHistorical(podUpdatesBypass)}
|
||||||
reflector := cache.NewReflector(lw, &api.Pod{}, podUpdates, 0)
|
reflector := cache.NewReflector(lw, &api.Pod{}, podUpdates, 0)
|
||||||
|
|
||||||
q := queuer.New(queue.NewDelayFIFO(), podUpdates)
|
q := queuer.New(queue.NewDelayFIFO(), podUpdates)
|
||||||
@ -101,7 +101,7 @@ func New(c *config.Config, fw framework.Framework, ps podschedulers.PodScheduler
|
|||||||
|
|
||||||
runtime.On(startLatch, func() {
|
runtime.On(startLatch, func() {
|
||||||
reflector.Run() // TODO(jdef) should listen for termination
|
reflector.Run() // TODO(jdef) should listen for termination
|
||||||
podDeleter.Run(updates, terminate)
|
podDeleter.Run(podUpdatesBypass, terminate)
|
||||||
q.Run(terminate)
|
q.Run(terminate)
|
||||||
|
|
||||||
q.InstallDebugHandlers(mux)
|
q.InstallDebugHandlers(mux)
|
||||||
|
@ -19,12 +19,11 @@ package scheduler
|
|||||||
|
|
||||||
// Created from contrib/mesos/docs/scheduler.monopic:
|
// Created from contrib/mesos/docs/scheduler.monopic:
|
||||||
//
|
//
|
||||||
//
|
|
||||||
// ┌───────────────────────────────────────────────────────────────────────┐
|
// ┌───────────────────────────────────────────────────────────────────────┐
|
||||||
// │ ┌───────────────────────────────────────┐ ┌─┴──────────────────────┐ ┌───────────────┐
|
// │ ┌───────────────────────────────────────┐ ┌─┴──────────────────────┐ ┌───────────────┐
|
||||||
// ┌─────▼─────┐ │Queuer │ Await() │ podUpdates │ │ │
|
// ┌────────▼─────────┐ │Queuer │ Await() │ podUpdates │ │ │
|
||||||
// │ updates │ │- Yield() *api.Pod ├──pod CRUD ─▶ (queue.HistoricalFIFO) ◀──reflector──▶pods ListWatch ├──apiserver──▶
|
// │ podUpdatesBypass │ │- Yield() *api.Pod ├──pod CRUD ─▶ (queue.HistoricalFIFO) ◀──reflector──▶pods ListWatch ├──apiserver──▶
|
||||||
// └─────▲─────┘ │- Requeue(pod)/Dequeue(id)/Reoffer(pod)│ events │ │ │ │
|
// └────────▲─────────┘ │- Requeue(pod)/Dequeue(id)/Reoffer(pod)│ events │ │ │ │
|
||||||
// │ └───────────────────▲───────────────────┘ └───────────┬────────────┘ └───────────────┘
|
// │ └───────────────────▲───────────────────┘ └───────────┬────────────┘ └───────────────┘
|
||||||
// │ │ │
|
// │ │ │
|
||||||
// │ │ │
|
// │ │ │
|
||||||
|
Loading…
Reference in New Issue
Block a user