mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-02 22:33:52 +00:00
use generic sets in scheduler
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
This commit is contained in:
@@ -75,7 +75,7 @@ type stateData struct {
|
||||
//
|
||||
// Set in parallel during Filter, so write access there must be
|
||||
// protected by the mutex. Used by PostFilter.
|
||||
unavailableClaims sets.Int
|
||||
unavailableClaims sets.Set[int]
|
||||
|
||||
// podSchedulingState keeps track of the PodSchedulingContext
|
||||
// (if one exists) and the changes made to it.
|
||||
@@ -713,7 +713,7 @@ func (pl *dynamicResources) Filter(ctx context.Context, cs *framework.CycleState
|
||||
state.mutex.Lock()
|
||||
defer state.mutex.Unlock()
|
||||
if state.unavailableClaims == nil {
|
||||
state.unavailableClaims = sets.NewInt()
|
||||
state.unavailableClaims = sets.New[int]()
|
||||
}
|
||||
|
||||
for index := range unavailableClaims {
|
||||
|
||||
Reference in New Issue
Block a user