Skip to content

Commit 9fe18bf

Browse files
committed
Update core v1 fuzzer and validation tests to use util/ptr instead of util/pointer
1 parent ac05e1a commit 9fe18bf

File tree

2 files changed

+183
-183
lines changed

2 files changed

+183
-183
lines changed

pkg/apis/core/fuzzer/fuzzer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
3232
"k8s.io/apimachinery/pkg/util/intstr"
3333
"k8s.io/kubernetes/pkg/apis/core"
34-
utilpointer "k8s.io/utils/pointer"
34+
"k8s.io/utils/ptr"
3535
)
3636

3737
// Funcs returns the fuzzer functions for the core group.
@@ -528,7 +528,7 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
528528
ss.SessionAffinityConfig = nil
529529
}
530530
if ss.AllocateLoadBalancerNodePorts == nil {
531-
ss.AllocateLoadBalancerNodePorts = utilpointer.Bool(true)
531+
ss.AllocateLoadBalancerNodePorts = ptr.To(true)
532532
}
533533
},
534534
func(s *core.NodeStatus, c randfill.Continue) {

0 commit comments

Comments
 (0)