This is an automated email from the ASF dual-hosted git repository.

squakez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit b146dc59c61200b82e2a121e5c08836439f36402
Author: Luis Sergio Carneiro <[email protected]>
AuthorDate: Tue Sep 8 09:42:35 2026 -0300

    chore: address modernize lint on EnableServiceLinks
    
    Simplify ptr.To(false) to new(bool) per golangci-lint modernize check,
    as requested in review on #6798.
---
 pkg/controller/build/build_pod.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/controller/build/build_pod.go 
b/pkg/controller/build/build_pod.go
index 5044f843b..b673fad45 100644
--- a/pkg/controller/build/build_pod.go
+++ b/pkg/controller/build/build_pod.go
@@ -25,7 +25,6 @@ import (
        corev1 "k8s.io/api/core/v1"
        k8serrors "k8s.io/apimachinery/pkg/api/errors"
        metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
-       "k8s.io/utils/ptr"
        ctrl "sigs.k8s.io/controller-runtime/pkg/client"
 
        v1 "github.com/apache/camel-k/v2/pkg/apis/camel/v1"
@@ -77,7 +76,7 @@ func newBuildPod(ctx context.Context, client client.Client, 
build *v1.Build) *co
                        RestartPolicy:      corev1.RestartPolicyNever,
                        SecurityContext:    podSecurityContext,
                        NodeSelector:       
build.BuilderConfiguration().NodeSelector,
-                       EnableServiceLinks: ptr.To(false),
+                       EnableServiceLinks: new(bool),
                },
        }
 

Reply via email to