From 4101b796063942fa2d7bb04e9252a4725a834c88 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Thu, 16 Feb 2023 06:35:23 -0800 Subject: [PATCH] kubectl: use pointer.Bool instead of deprecated pointer.BoolPtr Signed-off-by: Will Daly --- staging/src/k8s.io/kubectl/pkg/cmd/debug/profiles.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/debug/profiles.go b/staging/src/k8s.io/kubectl/pkg/cmd/debug/profiles.go index f2986c9a1bd..57f4e07b27a 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/debug/profiles.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/debug/profiles.go @@ -252,7 +252,7 @@ func useHostNamespaces(p *corev1.Pod) { // shareProcessNamespace configures all containers in the pod to share the // process namespace. func shareProcessNamespace(p *corev1.Pod) { - p.Spec.ShareProcessNamespace = pointer.BoolPtr(true) + p.Spec.ShareProcessNamespace = pointer.Bool(true) } // clearSecurityContext clears the security context for the container. @@ -275,7 +275,7 @@ func setPrivileged(p *corev1.Pod, containerName string) { if c.SecurityContext == nil { c.SecurityContext = &corev1.SecurityContext{} } - c.SecurityContext.Privileged = pointer.BoolPtr(true) + c.SecurityContext.Privileged = pointer.Bool(true) return false }) } @@ -287,7 +287,7 @@ func disallowRoot(p *corev1.Pod, containerName string) { return true } c.SecurityContext = &corev1.SecurityContext{ - RunAsNonRoot: pointer.BoolPtr(true), + RunAsNonRoot: pointer.Bool(true), } return false })