- forward updated labels/annotations for downward API compat
- refactor queue.Pod construction to take functional options, privatize Pod fields - refactor DelayFIFO and HistoricalFIFO to offer consistent, more useful Pop() funcs - refactor pod update processing changes; long term we should somehow combine with the special pod config source that we are using for mirror pods - task launch timer cleanup
This commit is contained in:
@@ -59,7 +59,7 @@ type FIFO interface {
|
||||
// ready, they are returned in the order in which they were added/updated.
|
||||
// The item is removed from the queue (and the store) before it is returned,
|
||||
// so if you don't successfully process it, you need to add it back with Add().
|
||||
Pop() interface{}
|
||||
Pop(cancel <-chan struct{}) interface{}
|
||||
|
||||
// Await attempts to Pop within the given interval; upon success the non-nil
|
||||
// item is returned, otherwise nil
|
||||
@@ -101,3 +101,5 @@ type UniqueDeadlined interface {
|
||||
UniqueID
|
||||
Deadlined
|
||||
}
|
||||
|
||||
func WithoutCancel() <-chan struct{} { return nil }
|
||||
|
Reference in New Issue
Block a user