mirror of
https://github.com/traefik/traefik.git
synced 2025-12-10 12:01:36 +01:00
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
@ -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…
x
Reference in New Issue
Block a user