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:40 UTC
[camel-k] 01/01: Minor fix in the order of operation for sanitizing
integration name
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