Skip to content

Commit c13dcf8

Browse files
author
Ihar Hrachyshka
committed
ovn: remove redundant removes for ready status when disabled
It is removed in the main reconcile entrypoint, so there is no need to remove it inside per-CRD reconcile functions.
1 parent 9f8dc75 commit c13dcf8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/openstack/ovn.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func ReconcileOVNDbClusters(ctx context.Context, instance *corev1beta1.OpenStack
7373
if _, err := EnsureDeleted(ctx, helper, OVNDBCluster); err != nil {
7474
return false, err
7575
}
76-
instance.Status.Conditions.Remove(corev1beta1.OpenStackControlPlaneOVNReadyCondition)
7776
continue
7877
}
7978

@@ -121,7 +120,6 @@ func ReconcileOVNNorthd(ctx context.Context, instance *corev1beta1.OpenStackCont
121120
if _, err := EnsureDeleted(ctx, helper, OVNNorthd); err != nil {
122121
return false, err
123122
}
124-
instance.Status.Conditions.Remove(corev1beta1.OpenStackControlPlaneOVNReadyCondition)
125123
return false, nil
126124
}
127125

@@ -170,7 +168,6 @@ func ReconcileOVNController(ctx context.Context, instance *corev1beta1.OpenStack
170168
if _, err := EnsureDeleted(ctx, helper, OVNController); err != nil {
171169
return false, err
172170
}
173-
instance.Status.Conditions.Remove(corev1beta1.OpenStackControlPlaneOVNReadyCondition)
174171
return false, nil
175172
}
176173

0 commit comments

Comments
 (0)