Skip to content

Commit aa8006d

Browse files
committed
MULTIARCH-4098: Power VS: Make CAPI the default deployment method
1 parent 07e698a commit aa8006d

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

pkg/infrastructure/platform/platform.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"github.com/openshift/installer/pkg/terraform/stages/azure"
2222
"github.com/openshift/installer/pkg/terraform/stages/ibmcloud"
2323
"github.com/openshift/installer/pkg/terraform/stages/ovirt"
24-
"github.com/openshift/installer/pkg/terraform/stages/powervs"
2524
"github.com/openshift/installer/pkg/types"
2625
awstypes "github.com/openshift/installer/pkg/types/aws"
2726
azuretypes "github.com/openshift/installer/pkg/types/azure"
@@ -59,10 +58,7 @@ func ProviderForPlatform(platform string, fg featuregates.FeatureGate) (infrastr
5958
case nutanixtypes.Name:
6059
return clusterapi.InitializeProvider(nutanixcapi.Provider{}), nil
6160
case powervstypes.Name:
62-
if types.ClusterAPIFeatureGateEnabled(platform, fg) {
63-
return clusterapi.InitializeProvider(&powervscapi.Provider{}), nil
64-
}
65-
return terraform.InitializeProvider(powervs.PlatformStages), nil
61+
return clusterapi.InitializeProvider(&powervscapi.Provider{}), nil
6662
case openstacktypes.Name:
6763
return clusterapi.InitializeProvider(openstackcapi.Provider{}), nil
6864
case ovirttypes.Name:

pkg/infrastructure/platform/platform_altinfra.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ func ProviderForPlatform(platform string, fg featuregates.FeatureGate) (infrastr
4545
case vspheretypes.Name:
4646
return clusterapi.InitializeProvider(vspherecapi.Provider{}), nil
4747
case powervstypes.Name:
48-
if types.ClusterAPIFeatureGateEnabled(platform, fg) {
49-
return clusterapi.InitializeProvider(powervscapi.Provider{}), nil
50-
}
51-
return nil, nil
48+
return clusterapi.InitializeProvider(powervscapi.Provider{}), nil
5249
case openstacktypes.Name:
5350
return clusterapi.InitializeProvider(openstackcapi.Provider{}), nil
5451
case nutanixtypes.Name:

pkg/types/installconfig.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,14 +588,12 @@ func ClusterAPIFeatureGateEnabled(platform string, fgs featuregates.FeatureGate)
588588

589589
// Check if CAPI install is enabled for individual platforms.
590590
switch platform {
591-
case aws.Name, azure.Name, gcp.Name, nutanix.Name, openstack.Name, vsphere.Name:
591+
case aws.Name, azure.Name, gcp.Name, nutanix.Name, openstack.Name, powervs.Name, vsphere.Name:
592592
return true
593593
case azure.StackTerraformName, azure.StackCloud.Name():
594594
return false
595595
case ibmcloud.Name:
596596
return fgs.Enabled(features.FeatureGateClusterAPIInstallIBMCloud)
597-
case powervs.Name:
598-
return fgs.Enabled(features.FeatureGateClusterAPIInstallPowerVS)
599597
default:
600598
return false
601599
}

0 commit comments

Comments
 (0)