Skip to content

Commit 9ddfb06

Browse files
Merge pull request openshift#8814 from mjturek/capi-default
MULTIARCH-4098: Power VS: Make CAPI the default deployment method
2 parents 1f6c150 + aa8006d commit 9ddfb06

File tree

7 files changed

+8
-17
lines changed

7 files changed

+8
-17
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ require (
7070
github.com/nutanix-cloud-native/cluster-api-provider-nutanix v1.3.3-0.20240416171357-98239ba02cb2
7171
github.com/nutanix-cloud-native/prism-go-client v0.3.4
7272
github.com/onsi/gomega v1.33.1
73-
github.com/openshift/api v0.0.0-20240808055311-bf71d8fa8155
73+
github.com/openshift/api v0.0.0-20240808150900-cbdcd0df43e8
7474
github.com/openshift/assisted-image-service v0.0.0-20240607085136-02df2e56dde6
7575
github.com/openshift/assisted-service/api v0.0.0
7676
github.com/openshift/assisted-service/client v0.0.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,8 @@ github.com/opencontainers/image-spec v1.1.0 h1:8SG7/vwALn54lVB/0yZ/MMwhFrPYtpEHQ
764764
github.com/opencontainers/image-spec v1.1.0/go.mod h1:W4s4sFTMaBeK1BQLXbG4AdM2szdn85PY75RI83NrTrM=
765765
github.com/opencontainers/runtime-spec v1.2.0 h1:z97+pHb3uELt/yiAWD691HNHQIF07bE7dzrbT927iTk=
766766
github.com/opencontainers/runtime-spec v1.2.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
767-
github.com/openshift/api v0.0.0-20240808055311-bf71d8fa8155 h1:+2bCTR9bwU6E2VmWJhTfd9yaDPaOGZ0B1S4rymX6BH8=
768-
github.com/openshift/api v0.0.0-20240808055311-bf71d8fa8155/go.mod h1:OOh6Qopf21pSzqNVCB5gomomBXb8o5sGKZxG2KNpaXM=
767+
github.com/openshift/api v0.0.0-20240808150900-cbdcd0df43e8 h1:3rCq+cmukljkde0q/4EEPrGZzAL0zTbuX0GZNvwsHoc=
768+
github.com/openshift/api v0.0.0-20240808150900-cbdcd0df43e8/go.mod h1:OOh6Qopf21pSzqNVCB5gomomBXb8o5sGKZxG2KNpaXM=
769769
github.com/openshift/assisted-image-service v0.0.0-20240607085136-02df2e56dde6 h1:U6ve+dnHlHhAELoxX+rdFOHVhoaYl0l9qtxwYtsO6C0=
770770
github.com/openshift/assisted-image-service v0.0.0-20240607085136-02df2e56dde6/go.mod h1:o2H5VwQhUD8P6XsK6dRmKpCCJqVvv12KJQZBXmcCXCU=
771771
github.com/openshift/assisted-service/api v0.0.0-20230831114549-1922eda29cf8 h1:+fZLKbycDo4JeLwPGVSAgf2XPaJGLM341l9ZfrrlxG0=

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
}

vendor/github.com/openshift/api/features/features.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ github.com/opencontainers/image-spec/specs-go/v1
10361036
# github.com/opencontainers/runtime-spec v1.2.0
10371037
## explicit
10381038
github.com/opencontainers/runtime-spec/specs-go
1039-
# github.com/openshift/api v0.0.0-20240808055311-bf71d8fa8155
1039+
# github.com/openshift/api v0.0.0-20240808150900-cbdcd0df43e8
10401040
## explicit; go 1.22.0
10411041
github.com/openshift/api/annotations
10421042
github.com/openshift/api/config/v1

0 commit comments

Comments
 (0)