Skip to content

Commit

Permalink
validate for reconcile should check reference from EnvoyProxy (#3895)
Browse files Browse the repository at this point in the history
validateEndpointSliceForReconcile should check reference from EnvoyProxy

Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain authored Jul 19, 2024
1 parent fe0db24 commit e80c41d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/provider/kubernetes/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,10 @@ func (r *gatewayAPIReconciler) validateBackendForReconcile(obj client.Object) bo
return true
}

if r.isEnvoyProxyReferencingBackend(&nsName) {
return true
}

return r.isEnvoyExtensionPolicyReferencingBackend(&nsName)
}

Expand Down Expand Up @@ -428,6 +432,10 @@ func (r *gatewayAPIReconciler) validateEndpointSliceForReconcile(obj client.Obje
return true
}

if r.isEnvoyProxyReferencingBackend(&nsName) {
return true
}

return r.isEnvoyExtensionPolicyReferencingBackend(&nsName)
}

Expand Down

0 comments on commit e80c41d

Please sign in to comment.