Merge pull request #111845 from ialidzhikov/cleanup/pkg-scheduler

pkg/scheduler: Replace deprecated func usage from the `k8s.io/utils/pointer` pkg
This commit is contained in:
Kubernetes Prow Robot
2022-08-23 20:08:15 -07:00
committed by GitHub
15 changed files with 198 additions and 198 deletions

View File

@@ -35,7 +35,7 @@ import (
fakeframework "k8s.io/kubernetes/pkg/scheduler/framework/fake"
st "k8s.io/kubernetes/pkg/scheduler/testing"
volumeutil "k8s.io/kubernetes/pkg/volume/util"
utilpointer "k8s.io/utils/pointer"
"k8s.io/utils/pointer"
)
const (
@@ -636,7 +636,7 @@ func getNodeWithPodAndVolumeLimits(limitSource string, pods []*v1.Pod, limit int
}
if addLimits {
driver.Allocatable = &storagev1.VolumeNodeResources{
Count: utilpointer.Int32Ptr(int32(limit)),
Count: pointer.Int32(int32(limit)),
}
}
csiNode.Spec.Drivers = append(csiNode.Spec.Drivers, driver)