mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 05:40:42 +00:00 
			
		
		
		
	Rename podUpdates updates param -> podUpdatesBypass
This commit is contained in:
		
										
											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. | ||||
| 	updates := make(chan queue.Entry, c.UpdatesBacklog) | ||||
| 	podUpdates := &podStoreAdapter{queue.NewHistorical(updates)} | ||||
| 	podUpdatesBypass := make(chan queue.Entry, c.UpdatesBacklog) | ||||
| 	podUpdates := &podStoreAdapter{queue.NewHistorical(podUpdatesBypass)} | ||||
| 	reflector := cache.NewReflector(lw, &api.Pod{}, podUpdates, 0) | ||||
|  | ||||
| 	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() { | ||||
| 		reflector.Run() // TODO(jdef) should listen for termination | ||||
| 		podDeleter.Run(updates, terminate) | ||||
| 		podDeleter.Run(podUpdatesBypass, terminate) | ||||
| 		q.Run(terminate) | ||||
|  | ||||
| 		q.InstallDebugHandlers(mux) | ||||
|   | ||||
| @@ -19,12 +19,11 @@ package scheduler | ||||
|  | ||||
| // Created from contrib/mesos/docs/scheduler.monopic: | ||||
| // | ||||
| // | ||||
| //                     ┌───────────────────────────────────────────────────────────────────────┐ | ||||
| //                     │                ┌───────────────────────────────────────┐            ┌─┴──────────────────────┐             ┌───────────────┐ | ||||
| //               ┌─────▼─────┐          │Queuer                                 │  Await()   │       podUpdates       │             │               │ | ||||
| //               │  updates  │          │- Yield() *api.Pod                     ├──pod CRUD ─▶ (queue.HistoricalFIFO) ◀──reflector──▶pods ListWatch ├──apiserver──▶ | ||||
| //               └─────▲─────┘          │- Requeue(pod)/Dequeue(id)/Reoffer(pod)│   events   │                        │             │               │ | ||||
| //            ┌────────▼─────────┐      │Queuer                                 │  Await()   │       podUpdates       │             │               │ | ||||
| //            │ podUpdatesBypass │      │- Yield() *api.Pod                     ├──pod CRUD ─▶ (queue.HistoricalFIFO) ◀──reflector──▶pods ListWatch ├──apiserver──▶ | ||||
| //            └────────▲─────────┘      │- Requeue(pod)/Dequeue(id)/Reoffer(pod)│   events   │                        │             │               │ | ||||
| //                     │                └───────────────────▲───────────────────┘            └───────────┬────────────┘             └───────────────┘ | ||||
| //                     │                                    │                                            │ | ||||
| //                     │                                    │                                            │ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user