Update core v1 fuzzer and validation tests to use util/ptr instead of util/pointer

This commit is contained in:
Joe Betz 2025-03-11 10:58:41 -04:00
parent ac05e1a48e
commit 9fe18bf486
2 changed files with 183 additions and 183 deletions

View File

@ -31,7 +31,7 @@ import (
runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/kubernetes/pkg/apis/core"
utilpointer "k8s.io/utils/pointer"
"k8s.io/utils/ptr"
)
// Funcs returns the fuzzer functions for the core group.
@ -528,7 +528,7 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
ss.SessionAffinityConfig = nil
}
if ss.AllocateLoadBalancerNodePorts == nil {
ss.AllocateLoadBalancerNodePorts = utilpointer.Bool(true)
ss.AllocateLoadBalancerNodePorts = ptr.To(true)
}
},
func(s *core.NodeStatus, c randfill.Continue) {

File diff suppressed because it is too large Load Diff