Skip to content

Commit

Permalink
Add PowerVS OVN Kube routing config
Browse files Browse the repository at this point in the history
  • Loading branch information
dharaneeshvrd committed Sep 2, 2022
1 parent 86fb1c8 commit 5a9ec05
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -45,7 +45,15 @@ func ReconcileNetworkOperator(network *operatorv1.Network, networkType hyperv1.N
network.Spec.DefaultNetwork.OVNKubernetesConfig.GenevePort = &port
}
}

case hyperv1.PowerVSPlatform:
if networkType == hyperv1.OVNKubernetes {
if network.Spec.DefaultNetwork.OVNKubernetesConfig == nil {
network.Spec.DefaultNetwork.OVNKubernetesConfig = &operatorv1.OVNKubernetesConfig{}
}
// Default shared routing causes egress traffic to use OVN routes, to use the routes present in host, need to use host routing
// BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1996108
network.Spec.DefaultNetwork.OVNKubernetesConfig.GatewayConfig = &operatorv1.GatewayConfig{RoutingViaHost: true}
}
default:
// do nothing
}
Expand Down

0 comments on commit 5a9ec05

Please sign in to comment.