Skip to content

Commit

Permalink
ovn: remove redundant removes for ready status when disabled
Browse files Browse the repository at this point in the history
It is removed in the main reconcile entrypoint, so there is no need to
remove it inside per-CRD reconcile functions.
  • Loading branch information
booxter committed Feb 12, 2024
1 parent 9f8dc75 commit c13dcf8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/openstack/ovn.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ func ReconcileOVNDbClusters(ctx context.Context, instance *corev1beta1.OpenStack
if _, err := EnsureDeleted(ctx, helper, OVNDBCluster); err != nil {
return false, err
}
instance.Status.Conditions.Remove(corev1beta1.OpenStackControlPlaneOVNReadyCondition)
continue
}

Expand Down Expand Up @@ -121,7 +120,6 @@ func ReconcileOVNNorthd(ctx context.Context, instance *corev1beta1.OpenStackCont
if _, err := EnsureDeleted(ctx, helper, OVNNorthd); err != nil {
return false, err
}
instance.Status.Conditions.Remove(corev1beta1.OpenStackControlPlaneOVNReadyCondition)
return false, nil
}

Expand Down Expand Up @@ -170,7 +168,6 @@ func ReconcileOVNController(ctx context.Context, instance *corev1beta1.OpenStack
if _, err := EnsureDeleted(ctx, helper, OVNController); err != nil {
return false, err
}
instance.Status.Conditions.Remove(corev1beta1.OpenStackControlPlaneOVNReadyCondition)
return false, nil
}

Expand Down

0 comments on commit c13dcf8

Please sign in to comment.