mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-09 11:06:58 +02:00
remove unnecessary variable
This commit is contained in:
parent
9854a0ecb4
commit
f27da2b10e
@ -309,9 +309,7 @@ func (c *gatewayRouteResolver) resolve(rt gatewayRoute) (map[string]endpoint.Tar
|
|||||||
ref := rps.ParentRef
|
ref := rps.ParentRef
|
||||||
namespace := strVal((*string)(ref.Namespace), meta.Namespace)
|
namespace := strVal((*string)(ref.Namespace), meta.Namespace)
|
||||||
// Ensure that the parent reference is in the routeParentRefs list
|
// Ensure that the parent reference is in the routeParentRefs list
|
||||||
hasParentRef := gwRouteHasParentRef(routeParentRefs, ref, meta)
|
if !gwRouteHasParentRef(routeParentRefs, ref, meta) {
|
||||||
|
|
||||||
if !hasParentRef {
|
|
||||||
log.Debugf("Parent reference %s/%s not found in routeParentRefs for %s %s/%s", namespace, string(ref.Name), c.src.rtKind, meta.Namespace, meta.Name)
|
log.Debugf("Parent reference %s/%s not found in routeParentRefs for %s %s/%s", namespace, string(ref.Name), c.src.rtKind, meta.Namespace, meta.Name)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user