You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/10/05 06:22:39 UTC

[camel-k] branch sanitize-fix created (now 3a124bd)

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

acosentino pushed a change to branch sanitize-fix
in repository https://gitbox.apache.org/repos/asf/camel-k.git.


      at 3a124bd  Minor fix in the order of operation for sanitizing integration name

This branch includes the following new commits:

     new 3a124bd  Minor fix in the order of operation for sanitizing integration name

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-k] 01/01: Minor fix in the order of operation for sanitizing integration name

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 3a124bda52ef68156498022b6871a7c4536249ee
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Oct 5 08:21:45 2018 +0200

    Minor fix in the order of operation for sanitizing integration name
---
 pkg/util/kubernetes/sanitize.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/util/kubernetes/sanitize.go b/pkg/util/kubernetes/sanitize.go
index 3021103..95dee40 100644
--- a/pkg/util/kubernetes/sanitize.go
+++ b/pkg/util/kubernetes/sanitize.go
@@ -36,8 +36,8 @@ func init() {
 func SanitizeName(name string) string {
 	name = strings.Split(name, ".")[0]
 	name = path.Base(name)
-	name = strings.ToLower(name)
 	name = strcase.KebabCase(name)
+	name = strings.ToLower(name)
 	name = disallowedChars.ReplaceAllString(name, "")
 	name = strings.TrimFunc(name, isDisallowedStartEndChar)
 	return name