Update kubernetes versions in CI verification (#2844)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2023-10-10 13:11:43 +05:30
committed by GitHub
parent 56b49dcee8
commit b43b31884a
5 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -99,15 +99,15 @@ func KubifyName(old string) string {
newName := strings.ToLower(old)
// replace disallowed chars with '-'
inv, _ := regexp.Compile("[^-a-z0-9]")
inv := regexp.MustCompile("[^-a-z0-9]")
newName = string(inv.ReplaceAll([]byte(newName), []byte("-")))
// trim leading non-alphabetic
leadingnonalpha, _ := regexp.Compile("^[^a-z]+")
leadingnonalpha := regexp.MustCompile("^[^a-z]+")
newName = string(leadingnonalpha.ReplaceAll([]byte(newName), []byte{}))
// trim trailing
trailing, _ := regexp.Compile("[^a-z0-9]+$")
trailing := regexp.MustCompile("[^a-z0-9]+$")
newName = string(trailing.ReplaceAll([]byte(newName), []byte{}))
// truncate to length