File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
pkg/asset/manifests/openstack Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package openstack
22
33import (
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]\n enabled = false\n "
108115 }
109116
110117 return cloudProviderConfigData , cloudProviderConfigCABundleData , nil
You can’t perform that action at this time.
0 commit comments