squakez commented on code in PR #3556:
URL: https://github.com/apache/camel-k/pull/3556#discussion_r951100176


##########
pkg/cmd/rebuild.go:
##########
@@ -84,9 +108,10 @@ func (o *rebuildCmdOptions) listAllIntegrations(c 
client.Client) ([]v1.Integrati
 func (o *rebuildCmdOptions) getIntegrations(c client.Client, names []string) 
([]v1.Integration, error) {
        ints := make([]v1.Integration, 0, len(names))
        for _, n := range names {
-               it := v1.NewIntegration(o.Namespace, n)
+               name := kubernetes.SanitizeName(n)

Review Comment:
   Why do we need to sanitize the name? Isn't this value already the one passed 
by the user?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to