Skip to content

Commit

Permalink
Merge pull request #659 from gibizer/allow-disabling-ovn
Browse files Browse the repository at this point in the history
Do not block Ready when OVN is disabled
  • Loading branch information
openshift-merge-bot[bot] authored Feb 9, 2024
2 parents 00c81bc + b6a776f commit 04deeb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/openstack/ovn.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func ReconcileOVN(ctx context.Context, instance *corev1beta1.OpenStackControlPla
// Expect all services (dbclusters, northd, ovn-controller) ready
if OVNDBClustersReady && OVNNorthdReady && OVNControllerReady {
instance.Status.Conditions.MarkTrue(corev1beta1.OpenStackControlPlaneOVNReadyCondition, corev1beta1.OpenStackControlPlaneOVNReadyMessage)
} else if !instance.Spec.Ovn.Enabled {
instance.Status.Conditions.Remove(corev1beta1.OpenStackControlPlaneOVNReadyCondition)
} else {
instance.Status.Conditions.Set(condition.FalseCondition(
corev1beta1.OpenStackControlPlaneOVNReadyCondition,
Expand Down

0 comments on commit 04deeb6

Please sign in to comment.