Skip to content

Commit

Permalink
Assign readyFunc during local gateway init
Browse files Browse the repository at this point in the history
Set readyFunc for OCP HACK. This is a downstream only fix.
  • Loading branch information
pliurh committed Dec 23, 2020
1 parent 2161dd3 commit 68b26bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go-controller/pkg/node/gateway_localnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func newLocalGateway(nodeName string, hostSubnets []*net.IPNet, gwNextHops []net
// For SDN->OVN migration, see https://github.com/openshift/ovn-kubernetes/pull/281
if gwIntf == "none" {
var err error
gw.readyFunc = func() (bool, error) { return true, nil }
gw.initFunc, err = initSharedGatewayNoBridge(nodeName, hostSubnets, gwNextHops, nodeAnnotator)
if err != nil {
return nil, err
Expand Down

0 comments on commit 68b26bd

Please sign in to comment.