Now manage kubernetes version in ingress
The backend and ingressClassName are now under condition
This commit is contained in:
14
generator/writers/utils.go
Normal file
14
generator/writers/utils.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user