Skip to content

Commit

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

validateEndpointSliceForReconcile should check reference from EnvoyProxy

Signed-off-by: zirain <[email protected]>
Signed-off-by: Karandashov Daniil <[email protected]>
  • Loading branch information
zirain authored and Demacr committed Jul 26, 2024
1 parent c1f76d5 commit 4c41b68
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 4c41b68

Please sign in to comment.