@@ -55,7 +55,7 @@ import (
55
55
schedulerutils "k8s.io/kubernetes/test/integration/scheduler"
56
56
testutils "k8s.io/kubernetes/test/integration/util"
57
57
imageutils "k8s.io/kubernetes/test/utils/image"
58
- "k8s.io/utils/pointer "
58
+ "k8s.io/utils/ptr "
59
59
)
60
60
61
61
// imported from testutils
@@ -919,7 +919,7 @@ func TestPostFilterPlugin(t *testing.T) {
919
919
// Setup plugins for testing.
920
920
cfg := configtesting .V1ToInternalWithDefaults (t , configv1.KubeSchedulerConfiguration {
921
921
Profiles : []configv1.KubeSchedulerProfile {{
922
- SchedulerName : pointer . String (v1 .DefaultSchedulerName ),
922
+ SchedulerName : ptr . To (v1 .DefaultSchedulerName ),
923
923
Plugins : & configv1.Plugins {
924
924
Filter : configv1.PluginSet {
925
925
Enabled : []configv1.Plugin {
@@ -1208,7 +1208,7 @@ func TestPrebindPlugin(t *testing.T) {
1208
1208
cfg := configtesting .V1ToInternalWithDefaults (t , configv1.KubeSchedulerConfiguration {
1209
1209
Profiles : []configv1.KubeSchedulerProfile {
1210
1210
{
1211
- SchedulerName : pointer . String (v1 .DefaultSchedulerName ),
1211
+ SchedulerName : ptr . To (v1 .DefaultSchedulerName ),
1212
1212
Plugins : & configv1.Plugins {
1213
1213
PreBind : configv1.PluginSet {
1214
1214
Enabled : []configv1.Plugin {
@@ -1218,7 +1218,7 @@ func TestPrebindPlugin(t *testing.T) {
1218
1218
},
1219
1219
},
1220
1220
{
1221
- SchedulerName : pointer . String ("2nd-scheduler" ),
1221
+ SchedulerName : ptr . To ("2nd-scheduler" ),
1222
1222
Plugins : & configv1.Plugins {
1223
1223
Filter : configv1.PluginSet {
1224
1224
Enabled : []configv1.Plugin {
@@ -1748,7 +1748,7 @@ func TestBindPlugin(t *testing.T) {
1748
1748
// Setup initial unreserve and bind plugins for testing.
1749
1749
cfg := configtesting .V1ToInternalWithDefaults (t , configv1.KubeSchedulerConfiguration {
1750
1750
Profiles : []configv1.KubeSchedulerProfile {{
1751
- SchedulerName : pointer . String (v1 .DefaultSchedulerName ),
1751
+ SchedulerName : ptr . To (v1 .DefaultSchedulerName ),
1752
1752
Plugins : & configv1.Plugins {
1753
1753
MultiPoint : configv1.PluginSet {
1754
1754
Disabled : []configv1.Plugin {
@@ -2461,7 +2461,7 @@ func TestPreemptWithPermitPlugin(t *testing.T) {
2461
2461
cfg := configtesting .V1ToInternalWithDefaults (t , configv1.KubeSchedulerConfiguration {
2462
2462
Profiles : []configv1.KubeSchedulerProfile {
2463
2463
{
2464
- SchedulerName : pointer . String (v1 .DefaultSchedulerName ),
2464
+ SchedulerName : ptr . To (v1 .DefaultSchedulerName ),
2465
2465
Plugins : & configv1.Plugins {
2466
2466
Permit : configv1.PluginSet {
2467
2467
Enabled : []configv1.Plugin {
@@ -2647,7 +2647,7 @@ func TestActivatePods(t *testing.T) {
2647
2647
// Setup initial filter plugin for testing.
2648
2648
cfg := configtesting .V1ToInternalWithDefaults (t , configv1.KubeSchedulerConfiguration {
2649
2649
Profiles : []configv1.KubeSchedulerProfile {{
2650
- SchedulerName : pointer . String (v1 .DefaultSchedulerName ),
2650
+ SchedulerName : ptr . To (v1 .DefaultSchedulerName ),
2651
2651
Plugins : & configv1.Plugins {
2652
2652
PreFilter : configv1.PluginSet {
2653
2653
Enabled : []configv1.Plugin {
@@ -2823,7 +2823,7 @@ func TestPreEnqueuePluginEventsToRegister(t *testing.T) {
2823
2823
// Setup plugins for testing.
2824
2824
cfg := configtesting .V1ToInternalWithDefaults (t , configv1.KubeSchedulerConfiguration {
2825
2825
Profiles : []configv1.KubeSchedulerProfile {{
2826
- SchedulerName : pointer . String (v1 .DefaultSchedulerName ),
2826
+ SchedulerName : ptr . To (v1 .DefaultSchedulerName ),
2827
2827
Plugins : & configv1.Plugins {
2828
2828
PreEnqueue : configv1.PluginSet {
2829
2829
Enabled : []configv1.Plugin {
0 commit comments