mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-05 06:36:11 +02:00
fix: check that parent generation matches current generation.
This commit is contained in:
parent
d587756d06
commit
219e19fee7
@ -307,7 +307,13 @@ func (c *gatewayRouteResolver) resolve(rt gatewayRoute) (map[string]endpoint.Tar
|
||||
for _, rps := range rt.RouteStatus().Parents {
|
||||
// Confirm the Parent is the standard Gateway kind.
|
||||
ref := rps.ParentRef
|
||||
|
||||
namespace := strVal((*string)(ref.Namespace), meta.Namespace)
|
||||
if rps.Conditions[0].ObservedGeneration != meta.Generation {
|
||||
log.Debugf("Ignoring parent %s/%s of %s/%s as generation %d does not match current generation %d", namespace, ref.Name, meta.Namespace, meta.Name, rps.Conditions[0].ObservedGeneration, meta.Generation)
|
||||
continue
|
||||
}
|
||||
|
||||
// Ensure that the parent reference is in the routeParentRefs list
|
||||
if !gwRouteHasParentRef(routeParentRefs, ref, meta) {
|
||||
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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user