mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Add doc that plugins in binding cycle should not use NodeInfoSnapshot()
This commit is contained in:
parent
55807b71ad
commit
a3ed664246
@ -306,7 +306,10 @@ type FrameworkHandle interface {
|
||||
// NodeInfoSnapshot return the latest NodeInfo snapshot. The snapshot
|
||||
// is taken at the beginning of a scheduling cycle and remains unchanged until
|
||||
// a pod finishes "Reserve" point. There is no guarantee that the information
|
||||
// remains unchanged in the binding phase of scheduling.
|
||||
// remains unchanged in the binding phase of scheduling, so plugins in the binding
|
||||
// cycle(permit/pre-bind/bind/post-bind/un-reserve plugin) should not use it,
|
||||
// otherwise a concurrent read/write error might occur, they should use scheduler
|
||||
// cache instead.
|
||||
NodeInfoSnapshot() *internalcache.NodeInfoSnapshot
|
||||
|
||||
// IterateOverWaitingPods acquires a read lock and iterates over the WaitingPods map.
|
||||
|
Loading…
Reference in New Issue
Block a user