@@ -41,8 +41,7 @@ import (
41
41
"k8s.io/client-go/util/workqueue"
42
42
_ "k8s.io/kubernetes/pkg/apis/core/install"
43
43
"k8s.io/kubernetes/pkg/controller"
44
-
45
- "github.com/Azure/go-autorest/autorest/to"
44
+ utilpointer "k8s.io/utils/pointer"
46
45
)
47
46
48
47
type pdbStates map [string ]policy.PodDisruptionBudget
@@ -445,7 +444,7 @@ func TestIntegerMaxUnavailableWithScaling(t *testing.T) {
445
444
ps .VerifyPdbStatus (t , pdbName , 0 , 1 , 5 , 7 , map [string ]metav1.Time {})
446
445
447
446
// Update scale of ReplicaSet and check PDB
448
- rs .Spec .Replicas = to .Int32Ptr (5 )
447
+ rs .Spec .Replicas = utilpointer .Int32Ptr (5 )
449
448
update (t , dc .rsStore , rs )
450
449
451
450
dc .sync (pdbName )
@@ -470,7 +469,7 @@ func TestPercentageMaxUnavailableWithScaling(t *testing.T) {
470
469
ps .VerifyPdbStatus (t , pdbName , 0 , 1 , 4 , 7 , map [string ]metav1.Time {})
471
470
472
471
// Update scale of ReplicaSet and check PDB
473
- rs .Spec .Replicas = to .Int32Ptr (3 )
472
+ rs .Spec .Replicas = utilpointer .Int32Ptr (3 )
474
473
update (t , dc .rsStore , rs )
475
474
476
475
dc .sync (pdbName )
0 commit comments