We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b021cc commit 29e6ea0Copy full SHA for 29e6ea0
cmd/gateway/setup.go
@@ -59,7 +59,7 @@ func GatewayControllerParam(domain string) ValidatorContext {
59
func validateControllerName(name string) error {
60
// Regex from: https://github.com/kubernetes-sigs/gateway-api/blob/547122f7f55ac0464685552898c560658fb40073/apis/v1alpha2/shared_types.go#L462
61
re := regexp.MustCompile(controllerNameRegex)
62
- if !re.Match([]byte(name)) {
+ if !re.MatchString(name) {
63
return fmt.Errorf("invalid gateway controller name: %s; expected format is DOMAIN/PATH", name)
64
}
65
return nil
0 commit comments