Skip to content

Commit

Permalink
Merge pull request #4155 from tssurya/fix-ensureTransitSwitch
Browse files Browse the repository at this point in the history
Fix ensureTransitSwitch from failing if there are no nodes
  • Loading branch information
trozet committed Feb 26, 2024
2 parents 5fb2aea + ae38f07 commit 5f83f42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go-controller/pkg/ovn/zone_interconnect/zone_ic_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func (zic *ZoneInterconnectHandler) createOrUpdateTransitSwitch(networkID int) e
// ensureTransitSwitch sets up the global transit switch required for interoperability with other zones
// Must wait for network id to be annotated to any node by cluster manager
func (zic *ZoneInterconnectHandler) ensureTransitSwitch(nodes []*corev1.Node) error {
if len(nodes) == 0 { // nothing to do
return nil
}
start := time.Now()

// first try to get the network ID from the current state of the nodes
Expand Down

0 comments on commit 5f83f42

Please sign in to comment.