mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
test/e2e: replace k8s.io/utils/pointer package
Use "k8s.io/utils/ptr" instead of the deprecated "k8s.io/utils/pointer".
This commit is contained in:
parent
f199e3276b
commit
ea68017af6
1 changed files with 4 additions and 4 deletions
|
@ -31,10 +31,10 @@ import (
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
clientset "k8s.io/client-go/kubernetes"
|
clientset "k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/kubectl/pkg/util/podutils"
|
"k8s.io/kubectl/pkg/util/podutils"
|
||||||
|
"k8s.io/utils/ptr"
|
||||||
|
|
||||||
"k8s.io/kubernetes/test/e2e/framework"
|
"k8s.io/kubernetes/test/e2e/framework"
|
||||||
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
|
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
|
||||||
"k8s.io/utils/pointer"
|
|
||||||
|
|
||||||
"sigs.k8s.io/node-feature-discovery/test/e2e/utils"
|
"sigs.k8s.io/node-feature-discovery/test/e2e/utils"
|
||||||
)
|
)
|
||||||
|
@ -428,9 +428,9 @@ func NFDTopologyUpdaterSpec(kc utils.KubeletConfig, opts ...SpecOption) *corev1.
|
||||||
Capabilities: &corev1.Capabilities{
|
Capabilities: &corev1.Capabilities{
|
||||||
Drop: []corev1.Capability{"ALL"},
|
Drop: []corev1.Capability{"ALL"},
|
||||||
},
|
},
|
||||||
RunAsUser: pointer.Int64(0),
|
RunAsUser: ptr.To[int64](0),
|
||||||
ReadOnlyRootFilesystem: pointer.Bool(true),
|
ReadOnlyRootFilesystem: ptr.To[bool](true),
|
||||||
AllowPrivilegeEscalation: pointer.Bool(false),
|
AllowPrivilegeEscalation: ptr.To[bool](false),
|
||||||
SeccompProfile: &corev1.SeccompProfile{
|
SeccompProfile: &corev1.SeccompProfile{
|
||||||
Type: corev1.SeccompProfileTypeRuntimeDefault,
|
Type: corev1.SeccompProfileTypeRuntimeDefault,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue