You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pc...@apache.org on 2025/11/18 07:48:28 UTC

(camel-k) 03/03: fix: prefsprint voilation

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

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

commit e2b161ed3c403954bf78fd83f6a81aca459c3653
Author: Pranjul Kalsi <pr...@gmail.com>
AuthorDate: Mon Nov 17 13:59:06 2025 +0530

    fix: prefsprint voilation
---
 pkg/trait/kamelets.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/trait/kamelets.go b/pkg/trait/kamelets.go
index f43351505..78f659bbc 100644
--- a/pkg/trait/kamelets.go
+++ b/pkg/trait/kamelets.go
@@ -18,6 +18,7 @@ limitations under the License.
 package trait
 
 import (
+	"errors"
 	"fmt"
 	"net/url"
 	"path/filepath"
@@ -201,7 +202,7 @@ func (t *kameletsTrait) calculateNamespaces(e *Environment, defaultNamespaces ..
 	}
 	if len(namespaces) > 0 {
 		if e.Integration.Spec.ServiceAccountName == "" {
-			return nil, fmt.Errorf("you must to use an authorized ServiceAccount to access cross-namespace resources kamelets. " +
+			return nil, errors.New("you must to use an authorized ServiceAccount to access cross-namespace resources kamelets. " +
 				"Set it in the Integration spec accordingly")
 		}
 		// verify an SA exists and it is authorized for Kamelets in that namespace