Remove error when HTTProutes is empty
Co-authored-by: Jean-Baptiste Doumenjou <925513+jbdoumenjou@users.noreply.github.com>
This commit is contained in:
parent
ad980334d1
commit
513f6e9a68
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ func (c *clientWrapper) GetHTTPRoutes(namespace string, selector labels.Selector
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(httpRoutes) == 0 {
|
if len(httpRoutes) == 0 {
|
||||||
return nil, fmt.Errorf("failed to get HTTPRoute %s with labels selector %s: namespace is not within watched namespaces", namespace, selector)
|
log.WithoutContext().Debugf("No HTTPRoute found in %q namespace with labels selector %s", namespace, selector)
|
||||||
}
|
}
|
||||||
|
|
||||||
return httpRoutes, nil
|
return httpRoutes, nil
|
||||||
|
|
Loading…
Reference in a new issue