Skip to content

Commit 3c3931b

Browse files
committed
refactor: remove pointer package usage
Signed-off-by: Mark Sagi-Kazar <[email protected]>
1 parent 9cafb22 commit 3c3931b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ require (
1111
k8s.io/apimachinery v0.19.2
1212
k8s.io/client-go v0.19.2
1313
k8s.io/klog v1.0.0
14-
k8s.io/utils v0.0.0-20200729134348-d5654de09c73
1514
)

integration_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import (
3232
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
3333
"k8s.io/apimachinery/pkg/runtime/schema"
3434
"k8s.io/apimachinery/pkg/util/intstr"
35-
"k8s.io/utils/pointer"
3635
)
3736

3837
func TestIntegration(t *testing.T) {
@@ -525,8 +524,10 @@ func TestIntegration(t *testing.T) {
525524
},
526525
}).
527526
withLocalChange(func(i interface{}) {
527+
var replicas int32
528+
528529
pod := i.(*appsv1.Deployment)
529-
pod.Spec.Replicas = pointer.Int32Ptr(0)
530+
pod.Spec.Replicas = &replicas
530531
}),
531532
NewTestMatch("hpa match",
532533
&v2beta1.HorizontalPodAutoscaler{

0 commit comments

Comments
 (0)