@@ -6,7 +6,7 @@ package platform
66import (
77 "fmt"
88
9- configv1 "github.com/openshift/api/config/v1 "
9+ "github.com/openshift/api/features "
1010 "github.com/openshift/installer/pkg/infrastructure"
1111 awscapi "github.com/openshift/installer/pkg/infrastructure/aws/clusterapi"
1212 awsinfra "github.com/openshift/installer/pkg/infrastructure/aws/sdk"
@@ -50,15 +50,15 @@ import (
5050func ProviderForPlatform (platform string , fg featuregates.FeatureGate ) (infrastructure.Provider , error ) {
5151 switch platform {
5252 case awstypes .Name :
53- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
53+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
5454 return clusterapi .InitializeProvider (& awscapi.Provider {}), nil
5555 }
56- if fg .Enabled (configv1 .FeatureGateInstallAlternateInfrastructureAWS ) {
56+ if fg .Enabled (features .FeatureGateInstallAlternateInfrastructureAWS ) {
5757 return awsinfra .InitializeProvider (), nil
5858 }
5959 return terraform .InitializeProvider (aws .PlatformStages ), nil
6060 case azuretypes .Name :
61- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
61+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
6262 return clusterapi .InitializeProvider (& azureinfra.Provider {}), nil
6363 }
6464 return terraform .InitializeProvider (azure .PlatformStages ), nil
@@ -67,36 +67,36 @@ func ProviderForPlatform(platform string, fg featuregates.FeatureGate) (infrastr
6767 case baremetaltypes .Name :
6868 return baremetalinfra .InitializeProvider (), nil
6969 case gcptypes .Name :
70- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
70+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
7171 return clusterapi .InitializeProvider (gcpcapi.Provider {}), nil
7272 }
7373 return terraform .InitializeProvider (gcp .PlatformStages ), nil
7474 case ibmcloudtypes .Name :
75- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
75+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
7676 return clusterapi .InitializeProvider (ibmcloudcapi.Provider {}), nil
7777 }
7878 return terraform .InitializeProvider (ibmcloud .PlatformStages ), nil
7979 case libvirttypes .Name :
8080 return terraform .InitializeProvider (libvirt .PlatformStages ), nil
8181 case nutanixtypes .Name :
82- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
82+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
8383 return clusterapi .InitializeProvider (nutanixcapi.Provider {}), nil
8484 }
8585 return terraform .InitializeProvider (nutanix .PlatformStages ), nil
8686 case powervstypes .Name :
87- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
87+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
8888 return clusterapi .InitializeProvider (& powervscapi.Provider {}), nil
8989 }
9090 return terraform .InitializeProvider (powervs .PlatformStages ), nil
9191 case openstacktypes .Name :
92- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
92+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
9393 return clusterapi .InitializeProvider (openstackcapi.Provider {}), nil
9494 }
9595 return terraform .InitializeProvider (openstack .PlatformStages ), nil
9696 case ovirttypes .Name :
9797 return terraform .InitializeProvider (ovirt .PlatformStages ), nil
9898 case vspheretypes .Name :
99- if fg .Enabled (configv1 .FeatureGateClusterAPIInstall ) {
99+ if fg .Enabled (features .FeatureGateClusterAPIInstall ) {
100100 return clusterapi .InitializeProvider (vspherecapi.Provider {}), nil
101101 }
102102 return terraform .InitializeProvider (vsphere .PlatformStages ), nil
0 commit comments