Now manage kubernetes version in ingress

The backend and ingressClassName are now under condition
This commit is contained in:
2022-02-16 10:37:46 +01:00
parent 722c7424d0
commit a4834a0661
4 changed files with 55 additions and 13 deletions

View File

@@ -0,0 +1,14 @@
package writers
// CountSpaces returns the number of spaces from the begining of the line
func CountSpaces(line string) int {
var spaces int
for _, char := range line {
if char == ' ' {
spaces++
} else {
break
}
}
return spaces
}