From ea68017af6f69cf340b0f5e6b5b703eebacbc987 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 20 Dec 2023 15:12:11 +0200 Subject: [PATCH] test/e2e: replace k8s.io/utils/pointer package Use "k8s.io/utils/ptr" instead of the deprecated "k8s.io/utils/pointer". --- test/e2e/utils/pod/pod.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/utils/pod/pod.go b/test/e2e/utils/pod/pod.go index a6a7108b8..435405266 100644 --- a/test/e2e/utils/pod/pod.go +++ b/test/e2e/utils/pod/pod.go @@ -31,10 +31,10 @@ import ( "k8s.io/apimachinery/pkg/util/wait" clientset "k8s.io/client-go/kubernetes" "k8s.io/kubectl/pkg/util/podutils" + "k8s.io/utils/ptr" "k8s.io/kubernetes/test/e2e/framework" e2epod "k8s.io/kubernetes/test/e2e/framework/pod" - "k8s.io/utils/pointer" "sigs.k8s.io/node-feature-discovery/test/e2e/utils" ) @@ -428,9 +428,9 @@ func NFDTopologyUpdaterSpec(kc utils.KubeletConfig, opts ...SpecOption) *corev1. Capabilities: &corev1.Capabilities{ Drop: []corev1.Capability{"ALL"}, }, - RunAsUser: pointer.Int64(0), - ReadOnlyRootFilesystem: pointer.Bool(true), - AllowPrivilegeEscalation: pointer.Bool(false), + RunAsUser: ptr.To[int64](0), + ReadOnlyRootFilesystem: ptr.To[bool](true), + AllowPrivilegeEscalation: ptr.To[bool](false), SeccompProfile: &corev1.SeccompProfile{ Type: corev1.SeccompProfileTypeRuntimeDefault, },