Skip to content

Commit 1f6c150

Browse files
Merge pull request openshift#8809 from sadasu/capz-default
CORS-3617: Make Azure CAPI the default (& only) install option
2 parents 144e9c3 + 8f90afe commit 1f6c150

File tree

13 files changed

+296
-38
lines changed

13 files changed

+296
-38
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-20240802111554-a912e2ab1441
73+
github.com/openshift/api v0.0.0-20240808055311-bf71d8fa8155
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-20240802111554-a912e2ab1441 h1:32cV7o6wdQb4CMPTbVWNy6uHHXSeiTceGEtZ3q2mvuo=
768-
github.com/openshift/api v0.0.0-20240802111554-a912e2ab1441/go.mod h1:OOh6Qopf21pSzqNVCB5gomomBXb8o5sGKZxG2KNpaXM=
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=
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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ func ProviderForPlatform(platform string, fg featuregates.FeatureGate) (infrastr
4444
case awstypes.Name:
4545
return clusterapi.InitializeProvider(&awscapi.Provider{}), nil
4646
case azuretypes.Name:
47-
if types.ClusterAPIFeatureGateEnabled(platform, fg) {
48-
return clusterapi.InitializeProvider(&azureinfra.Provider{}), nil
49-
}
50-
return terraform.InitializeProvider(azure.PlatformStages), nil
47+
return clusterapi.InitializeProvider(&azureinfra.Provider{}), nil
5148
case azuretypes.StackTerraformName:
5249
return terraform.InitializeProvider(azure.StackPlatformStages), nil
5350
case baremetaltypes.Name:

pkg/infrastructure/platform/platform_altinfra.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,7 @@ func ProviderForPlatform(platform string, fg featuregates.FeatureGate) (infrastr
3434
case awstypes.Name:
3535
return clusterapi.InitializeProvider(&awscapi.Provider{}), nil
3636
case azuretypes.Name:
37-
if types.ClusterAPIFeatureGateEnabled(platform, fg) {
38-
return clusterapi.InitializeProvider(&azurecapi.Provider{}), nil
39-
}
40-
return nil, nil
37+
return clusterapi.InitializeProvider(&azurecapi.Provider{}), nil
4138
case gcptypes.Name:
4239
return clusterapi.InitializeProvider(gcpcapi.Provider{}), nil
4340
case ibmcloudtypes.Name:

pkg/types/installconfig.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,10 @@ 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, gcp.Name, nutanix.Name, openstack.Name, vsphere.Name:
591+
case aws.Name, azure.Name, gcp.Name, nutanix.Name, openstack.Name, vsphere.Name:
592592
return true
593593
case azure.StackTerraformName, azure.StackCloud.Name():
594594
return false
595-
case azure.Name:
596-
return fgs.Enabled(features.FeatureGateClusterAPIInstallAzure)
597595
case ibmcloud.Name:
598596
return fgs.Enabled(features.FeatureGateClusterAPIInstallIBMCloud)
599597
case powervs.Name:

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

Lines changed: 32 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/operator/v1/types_csi_cluster_driver.go

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/openshift/api/operator/v1/types_ingress.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)