servicecidrs controller clarify condition false reevaluation

Change-Id: I0eb8d39abe9b7b0ce6472ff426e9a62e7155aae1
This commit is contained in:
Antonio Ojea 2023-10-31 11:23:42 +00:00
parent fee07ad608
commit 3b69bd6a9b

View File

@ -351,7 +351,9 @@ func (c *Controller) sync(ctx context.Context, key string) error {
return err
}
if !ok {
// update the status to indicate why the ServiceCIDR can not be deleted
// update the status to indicate why the ServiceCIDR can not be deleted,
// it will be reevaludated by an event on any ServiceCIDR or IPAddress related object
// that may remove this condition.
svcApplyStatus := networkingapiv1alpha1apply.ServiceCIDRStatus().WithConditions(
metav1apply.Condition().
WithType(networkingapiv1alpha1.ServiceCIDRConditionReady).