diff --git a/pkg/webhook/ingress/validate_wildcard.go b/pkg/webhook/ingress/validate_wildcard.go index 21d036e21..c9106ee41 100644 --- a/pkg/webhook/ingress/validate_wildcard.go +++ b/pkg/webhook/ingress/validate_wildcard.go @@ -65,7 +65,7 @@ func (h *wildcard) wildcardHandler(ctx context.Context, clt client.Client, req a } // Loop over all the hosts present on the ingress. - for host, _ := range ingress.HostnamePathsPairs() { + for host := range ingress.HostnamePathsPairs() { // Check if one of the host has wildcard. if strings.HasPrefix(host, "*") {