Skip to content

Commit e52a7fa

Browse files
committed
Remove Alibaba
1 parent 49a82ff commit e52a7fa

7 files changed

+10
-88
lines changed

hack/push-updates.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ machine-api-provider-powervs
5454
machine-api-provider-nutanix
5555
cluster-api-provider-baremetal
5656
cluster-api-provider-ibmcloud
57-
cluster-api-provider-alibaba
5857
"
5958

6059
TITLE=""

install/0000_30_machine-api-operator_00_credentials-request.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -316,38 +316,6 @@ spec:
316316
---
317317
apiVersion: cloudcredential.openshift.io/v1
318318
kind: CredentialsRequest
319-
metadata:
320-
name: openshift-machine-api-alibabacloud
321-
namespace: openshift-cloud-credential-operator
322-
annotations:
323-
capability.openshift.io/name: MachineAPI+CloudCredential
324-
spec:
325-
providerSpec:
326-
apiVersion: cloudcredential.openshift.io/v1
327-
kind: AlibabaCloudProviderSpec
328-
statementEntries:
329-
- action:
330-
- ecs:DeleteInstances
331-
- ecs:DescribeImages
332-
- ecs:DescribeInstances
333-
- ecs:DescribeSecurityGroups
334-
- ecs:RunInstances
335-
- ecs:StopInstances
336-
- ecs:TagResources
337-
effect: Allow
338-
resource: '*'
339-
- action:
340-
- vpc:DescribeVpcs
341-
- vpc:DescribeVSwitches
342-
- ram:PassRole
343-
resource: '*'
344-
effect: Allow
345-
secretRef:
346-
namespace: openshift-machine-api
347-
name: alibabacloud-credentials
348-
---
349-
apiVersion: cloudcredential.openshift.io/v1
350-
kind: CredentialsRequest
351319
metadata:
352320
labels:
353321
controller-tools.k8s.io: "1.0"

install/0000_30_machine-api-operator_01_images.configmap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ data:
1515
"machineAPIOperator": "quay.io/openshift/origin-machine-api-operator",
1616
"kubeRBACProxy": "quay.io/openshift/origin-kube-rbac-proxy",
1717
"clusterAPIControllerAWS": "quay.io/openshift/origin-aws-machine-controllers",
18-
"clusterAPIControllerAlibaba": "quay.io/openshift/origin-alibaba-machine-controllers",
1918
"clusterAPIControllerOpenStack": "quay.io/openshift/origin-openstack-machine-api-provider",
2019
"clusterAPIControllerLibvirt": "quay.io/openshift/origin-libvirt-machine-controllers",
2120
"clusterAPIControllerBareMetal": "quay.io/openshift/origin-baremetal-machine-controllers",

install/image-references

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ spec:
5050
from:
5151
kind: DockerImage
5252
name: quay.io/openshift/origin-ovirt-machine-controllers
53-
- name: alibaba-machine-controllers
54-
from:
55-
kind: DockerImage
56-
name: quay.io/openshift/origin-alibaba-machine-controllers
5753
- name: nutanix-machine-controllers
5854
from:
5955
kind: DockerImage

pkg/operator/config.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ type Controllers struct {
3838
// Images allows build systems to inject images for MAO components
3939
type Images struct {
4040
MachineAPIOperator string `json:"machineAPIOperator"`
41-
ClusterAPIControllerAlibaba string `json:"clusterAPIControllerAlibaba"`
4241
ClusterAPIControllerAWS string `json:"clusterAPIControllerAWS"`
4342
ClusterAPIControllerOpenStack string `json:"clusterAPIControllerOpenStack"`
4443
ClusterAPIControllerLibvirt string `json:"clusterAPIControllerLibvirt"`
@@ -79,8 +78,6 @@ func getProviderControllerFromImages(platform configv1.PlatformType, images Imag
7978
switch platform {
8079
case configv1.AWSPlatformType:
8180
return images.ClusterAPIControllerAWS, nil
82-
case configv1.AlibabaCloudPlatformType:
83-
return images.ClusterAPIControllerAlibaba, nil
8481
case configv1.LibvirtPlatformType:
8582
return images.ClusterAPIControllerLibvirt, nil
8683
case configv1.OpenStackPlatformType:
@@ -121,8 +118,6 @@ func getTerminationHandlerFromImages(platform configv1.PlatformType, images Imag
121118
return images.ClusterAPIControllerGCP, nil
122119
case configv1.AzurePlatformType:
123120
return images.ClusterAPIControllerAzure, nil
124-
case configv1.AlibabaCloudPlatformType:
125-
return images.ClusterAPIControllerAlibaba, nil
126121
default:
127122
return clusterAPIControllerNoOp, nil
128123
}

pkg/operator/config_test.go

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import (
77
"path/filepath"
88
"testing"
99

10-
configv1 "github.com/openshift/api/config/v1"
11-
imagev1 "github.com/openshift/api/image/v1"
1210
corev1 "k8s.io/api/core/v1"
1311
"sigs.k8s.io/yaml"
12+
13+
configv1 "github.com/openshift/api/config/v1"
14+
imagev1 "github.com/openshift/api/image/v1"
1415
)
1516

1617
const (
17-
expectedAlibabaImage = "quay.io/openshift/origin-alibaba-machine-controllers"
1818
expectedAWSImage = "quay.io/openshift/origin-aws-machine-controllers"
1919
expectedAzureImage = "quay.io/openshift/origin-azure-machine-controllers"
2020
expectedBareMetalImage = "quay.io/openshift/origin-baremetal-machine-controllers"
@@ -93,15 +93,6 @@ func TestGetProviderFromInfrastructure(t *testing.T) {
9393
},
9494
},
9595
expected: configv1.AWSPlatformType,
96-
}, {
97-
infra: &configv1.Infrastructure{
98-
Status: configv1.InfrastructureStatus{
99-
PlatformStatus: &configv1.PlatformStatus{
100-
Type: configv1.AlibabaCloudPlatformType,
101-
},
102-
},
103-
},
104-
expected: configv1.AlibabaCloudPlatformType,
10596
}, {
10697
infra: &configv1.Infrastructure{
10798
Status: configv1.InfrastructureStatus{
@@ -280,10 +271,6 @@ func TestGetProviderControllerFromImages(t *testing.T) {
280271
provider: configv1.AWSPlatformType,
281272
expectedImage: expectedAWSImage,
282273
},
283-
{
284-
provider: configv1.AlibabaCloudPlatformType,
285-
expectedImage: expectedAlibabaImage,
286-
},
287274
{
288275
provider: configv1.LibvirtPlatformType,
289276
expectedImage: expectedLibvirtImage,
@@ -369,10 +356,6 @@ func TestGetTerminationHandlerFromImages(t *testing.T) {
369356
provider: configv1.AWSPlatformType,
370357
expectedImage: expectedAWSImage,
371358
},
372-
{
373-
provider: configv1.AlibabaCloudPlatformType,
374-
expectedImage: expectedAlibabaImage,
375-
},
376359
{
377360
provider: configv1.LibvirtPlatformType,
378361
expectedImage: clusterAPIControllerNoOp,

pkg/operator/operator_test.go

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ import (
1111
"time"
1212

1313
. "github.com/onsi/gomega"
14-
openshiftv1 "github.com/openshift/api/config/v1"
15-
fakeos "github.com/openshift/client-go/config/clientset/versioned/fake"
16-
configinformersv1 "github.com/openshift/client-go/config/informers/externalversions"
17-
fakemachine "github.com/openshift/client-go/machine/clientset/versioned/fake"
18-
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
19-
"github.com/openshift/library-go/pkg/operator/resource/resourceapply"
2014
"github.com/stretchr/testify/assert"
2115
appsv1 "k8s.io/api/apps/v1"
2216
kerrors "k8s.io/apimachinery/pkg/api/errors"
@@ -30,6 +24,13 @@ import (
3024
"k8s.io/client-go/kubernetes/scheme"
3125
"k8s.io/client-go/tools/record"
3226
"k8s.io/client-go/util/workqueue"
27+
28+
openshiftv1 "github.com/openshift/api/config/v1"
29+
fakeos "github.com/openshift/client-go/config/clientset/versioned/fake"
30+
configinformersv1 "github.com/openshift/client-go/config/informers/externalversions"
31+
fakemachine "github.com/openshift/client-go/machine/clientset/versioned/fake"
32+
"github.com/openshift/library-go/pkg/operator/configobserver/featuregates"
33+
"github.com/openshift/library-go/pkg/operator/resource/resourceapply"
3334
)
3435

3536
const (
@@ -366,25 +367,6 @@ func TestMAOConfigFromInfrastructure(t *testing.T) {
366367
PlatformType: openshiftv1.AWSPlatformType,
367368
},
368369
},
369-
{
370-
name: string(openshiftv1.AlibabaCloudPlatformType),
371-
platform: openshiftv1.AlibabaCloudPlatformType,
372-
infra: infra,
373-
proxy: proxy,
374-
expectedConfig: &OperatorConfig{
375-
TargetNamespace: targetNamespace,
376-
Proxy: proxy,
377-
Controllers: Controllers{
378-
Provider: images.ClusterAPIControllerAlibaba,
379-
MachineSet: images.MachineAPIOperator,
380-
NodeLink: images.MachineAPIOperator,
381-
MachineHealthCheck: images.MachineAPIOperator,
382-
TerminationHandler: images.ClusterAPIControllerAlibaba,
383-
KubeRBACProxy: images.KubeRBACProxy,
384-
},
385-
PlatformType: openshiftv1.AlibabaCloudPlatformType,
386-
},
387-
},
388370
{
389371
name: string(openshiftv1.LibvirtPlatformType),
390372
platform: openshiftv1.LibvirtPlatformType,

0 commit comments

Comments
 (0)