Skip to content

Commit 6dc2e83

Browse files
committed
PowerVC: Does not support OpenStack Load Balancers
PowerVC does not support OpenStack Load Balancers and instead relies on IBMCLOUD load balancers.
1 parent cb22310 commit 6dc2e83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/asset/manifests/openstack/cloudproviderconfig.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package openstack
22

33
import (
44
"context"
5+
"fmt"
56
"os"
67
"strconv"
78
"strings"
@@ -13,6 +14,7 @@ import (
1314
"github.com/openshift/installer/pkg/asset/installconfig/openstack"
1415
"github.com/openshift/installer/pkg/types"
1516
openstackdefaults "github.com/openshift/installer/pkg/types/openstack/defaults"
17+
"github.com/openshift/installer/pkg/types/powervc"
1618
)
1719

1820
// Error represents a failure while generating OpenStack provider
@@ -105,6 +107,11 @@ secret-namespace = kube-system
105107
// If set get the ID and configure CCM to use that network for LB FIPs.
106108
cloudProviderConfigData += "\n[LoadBalancer]\n"
107109
cloudProviderConfigData += "floating-network-id = " + networkID + "\n"
110+
if installConfig.Platform.Name() == powervc.Name {
111+
return "", "", fmt.Errorf("powervc does not support external network")
112+
}
113+
} else if installConfig.Platform.Name() == powervc.Name {
114+
cloudProviderConfigData += "\n[LoadBalancer]\nenabled = false\n"
108115
}
109116

110117
return cloudProviderConfigData, cloudProviderConfigCABundleData, nil

0 commit comments

Comments
 (0)