Skip to content

Commit 31d16ff

Browse files
authored
Merge pull request kubernetes#130734 from jpbetz/core-validation-pointer-to-ptr
util/pointer->ptr for core v1 fuzzer and validation tests
2 parents 1b6e321 + 9fe18bf commit 31d16ff

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)