mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
fix note delete to update according to code
This commit is contained in:
parent
8b3da41e8f
commit
2cba0a02f7
5
pkg/scheduler/eventhandlers.go
Normal file → Executable file
5
pkg/scheduler/eventhandlers.go
Normal file → Executable file
@ -435,8 +435,7 @@ func addAllEventHandlers(
|
||||
)
|
||||
}
|
||||
|
||||
// On add and delete of PVs, it will affect equivalence cache items
|
||||
// related to persistent volume
|
||||
// On add and update of PVs.
|
||||
informerFactory.Core().V1().PersistentVolumes().Informer().AddEventHandler(
|
||||
cache.ResourceEventHandlerFuncs{
|
||||
// MaxPDVolumeCountPredicate: since it relies on the counts of PV.
|
||||
@ -445,7 +444,7 @@ func addAllEventHandlers(
|
||||
},
|
||||
)
|
||||
|
||||
// This is for MaxPDVolumeCountPredicate: add/delete PVC will affect counts of PV when it is bound.
|
||||
// This is for MaxPDVolumeCountPredicate: add/update PVC will affect counts of PV when it is bound.
|
||||
informerFactory.Core().V1().PersistentVolumeClaims().Informer().AddEventHandler(
|
||||
cache.ResourceEventHandlerFuncs{
|
||||
AddFunc: sched.onPvcAdd,
|
||||
|
Loading…
Reference in New Issue
Block a user