in operator/pkg/operator/injector/validate.go [89:110]
func ValidateBackendServices(annotation, value string) error {
services := []string{value}
if strings.Contains(value, ",") {
services = strings.Split(value, ",")
}
allEmpty := true
for _, service := range services {
service = strings.TrimSpace(service)
if service == "" {
continue
}
allEmpty = false
err := ValidateIPv4OrHostname(annotation, service)
if err != nil {
return err
}
}
if allEmpty {
return fmt.Errorf("%s error:every service is nil", annotation)
}
return nil
}