Skip to content

Commit

Permalink
Allow to only enable hybrid overlay and not handle Windows networks
Browse files Browse the repository at this point in the history
This allows to have a hybridOverlayConfig empty struct and that will just
enable hybrid overlay but not handle Windows networks.
  • Loading branch information
rcarrillocruz committed Apr 8, 2020
1 parent d69bd9e commit 4e13142
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/network/ovn_kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ func renderOVNKubernetes(conf *operv1.NetworkSpec, bootstrapResult *bootstrap.Bo
data.Data["OVN_service_cidr"] = svcpools

if c.HybridOverlayConfig != nil {
data.Data["OVNHybridOverlayNetCIDR"] = c.HybridOverlayConfig.HybridClusterNetwork[0].CIDR
if c.HybridOverlayConfig.HybridClusterNetwork != nil {
data.Data["OVNHybridOverlayNetCIDR"] = c.HybridOverlayConfig.HybridClusterNetwork[0].CIDR
} else {
data.Data["OVNHybridOverlayNetCIDR"] = ""
}
data.Data["OVNHybridOverlayEnable"] = "true"
} else {
data.Data["OVNHybridOverlayNetCIDR"] = ""
Expand Down

0 comments on commit 4e13142

Please sign in to comment.