Skip to content

Commit 9c69a45

Browse files
authored
Merge pull request kubernetes#81808 from dims/drop-azure-go-autorest-from-pkg/controller
Drop Azure/go-autorest from pkg/controller
2 parents 3ede020 + 4e4c38b commit 9c69a45

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pkg/controller/disruption/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ go_test(
6868
"//staging/src/k8s.io/client-go/testing:go_default_library",
6969
"//staging/src/k8s.io/client-go/tools/cache:go_default_library",
7070
"//staging/src/k8s.io/client-go/util/workqueue:go_default_library",
71-
"//vendor/github.com/Azure/go-autorest/autorest/to:go_default_library",
71+
"//vendor/k8s.io/utils/pointer:go_default_library",
7272
],
7373
)
7474

pkg/controller/disruption/disruption_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ import (
4141
"k8s.io/client-go/util/workqueue"
4242
_ "k8s.io/kubernetes/pkg/apis/core/install"
4343
"k8s.io/kubernetes/pkg/controller"
44-
45-
"github.com/Azure/go-autorest/autorest/to"
44+
utilpointer "k8s.io/utils/pointer"
4645
)
4746

4847
type pdbStates map[string]policy.PodDisruptionBudget
@@ -445,7 +444,7 @@ func TestIntegerMaxUnavailableWithScaling(t *testing.T) {
445444
ps.VerifyPdbStatus(t, pdbName, 0, 1, 5, 7, map[string]metav1.Time{})
446445

447446
// Update scale of ReplicaSet and check PDB
448-
rs.Spec.Replicas = to.Int32Ptr(5)
447+
rs.Spec.Replicas = utilpointer.Int32Ptr(5)
449448
update(t, dc.rsStore, rs)
450449

451450
dc.sync(pdbName)
@@ -470,7 +469,7 @@ func TestPercentageMaxUnavailableWithScaling(t *testing.T) {
470469
ps.VerifyPdbStatus(t, pdbName, 0, 1, 4, 7, map[string]metav1.Time{})
471470

472471
// Update scale of ReplicaSet and check PDB
473-
rs.Spec.Replicas = to.Int32Ptr(3)
472+
rs.Spec.Replicas = utilpointer.Int32Ptr(3)
474473
update(t, dc.rsStore, rs)
475474

476475
dc.sync(pdbName)

0 commit comments

Comments
 (0)