Skip to content

Commit 062e0f1

Browse files
Merge branch 'openshift:master' into remove-bind-address-ibm-deployment
2 parents c19afe0 + b601c17 commit 062e0f1

23 files changed

+170
-416
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
IMG ?= controller:latest
44

55
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
6-
ENVTEST_K8S_VERSION = 1.30.1
6+
ENVTEST_K8S_VERSION = 1.30.3
77

88
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
99
CONTROLLER_GEN = go run ${PROJECT_DIR}/vendor/sigs.k8s.io/controller-tools/cmd/controller-gen
@@ -34,7 +34,7 @@ verify: fmt vet lint
3434
test: generate verify manifests unit
3535

3636
unit:
37-
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --use-deprecated-gcs=true -p path --bin-dir $(PROJECT_DIR)/bin --remote-bucket openshift-kubebuilder-tools)" ./hack/ci-test.sh
37+
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) -p path --bin-dir $(PROJECT_DIR)/bin --index https://raw.githubusercontent.com/openshift/api/master/envtest-releases.yaml)" ./hack/ci-test.sh
3838

3939
# Build operator binaries
4040
build: operator config-sync-controllers azure-config-credentials-injector

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This operator is considered stable with unit and end-to-end testing against the
2222
| [OpenStack](https://github.com/openshift/cloud-provider-openstack) | Yes | Yes |
2323
| [vSphere](https://github.com/openshift/cloud-provider-vsphere) | Yes | Yes |
2424
| [IBM](https://github.com/openshift/cloud-provider-ibm) | Yes | |
25-
| [Alibaba](https://github.com/openshift/cloud-provider-alibaba-cloud) | Yes | Yes |
25+
| [Alibaba](https://github.com/openshift/cloud-provider-alibaba-cloud) | Removed | No |
2626
| [Power VS](https://github.com/openshift/cloud-provider-powervs) | Yes | |
2727
| [Nutanix](https://github.com/openshift/cloud-provider-nutanix) | Yes | Yes |
2828

cmd/cluster-cloud-controller-manager-operator/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import (
3535
"k8s.io/component-base/config"
3636
"k8s.io/component-base/config/options"
3737
"k8s.io/klog/v2"
38-
"k8s.io/klog/v2/textlogger"
3938
ctrl "sigs.k8s.io/controller-runtime"
4039
"sigs.k8s.io/controller-runtime/pkg/cache"
4140
"sigs.k8s.io/controller-runtime/pkg/healthz"
@@ -77,8 +76,7 @@ func init() {
7776
}
7877

7978
func main() {
80-
textLoggerCfg := textlogger.NewConfig()
81-
textLoggerCfg.AddFlags(flag.CommandLine)
79+
klog.InitFlags(flag.CommandLine)
8280

8381
metricsAddr := flag.String(
8482
"metrics-bind-address",
@@ -109,7 +107,7 @@ func main() {
109107
options.BindLeaderElectionFlags(&leaderElectionConfig, pflag.CommandLine)
110108
pflag.Parse()
111109

112-
ctrl.SetLogger(textlogger.NewLogger(textLoggerCfg).WithName("CCMOperator"))
110+
ctrl.SetLogger(klog.NewKlogr().WithName("CCMOperator"))
113111

114112
restConfig := ctrl.GetConfigOrDie()
115113
le := util.GetLeaderElectionDefaults(restConfig, configv1.LeaderElection{

manifests/0000_26_cloud-controller-manager-operator_01_images.configmap.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ data:
1111
images.json: >
1212
{
1313
"cloudControllerManagerOperator": "quay.io/openshift/origin-cluster-cloud-controller-manager-operator",
14-
"cloudControllerManagerAlibaba": "quay.io/openshift/origin-alibaba-cloud-controller-manager",
1514
"cloudControllerManagerAWS": "quay.io/openshift/origin-aws-cloud-controller-manager",
1615
"cloudControllerManagerAzure": "quay.io/openshift/origin-azure-cloud-controller-manager",
1716
"cloudNodeManagerAzure": "quay.io/openshift/origin-azure-cloud-node-manager",

manifests/0000_26_cloud-controller-manager-operator_02_rbac_operator.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,19 @@ rules:
7575
- update
7676
- patch
7777

78+
- apiGroups:
79+
- admissionregistration.k8s.io
80+
resources:
81+
- validatingadmissionpolicies
82+
- validatingadmissionpolicybindings
83+
verbs:
84+
- get
85+
- list
86+
- watch
87+
- create
88+
- update
89+
- patch
90+
7891
# vSphere has a separate node manager that uses the service account kube-system/vsphere-cloud-controller-manager.
7992
# The operator must have these permissions to then grant them to the vSphere node manager.
8093
- apiGroups:
@@ -106,7 +119,6 @@ rules:
106119
- create
107120
- patch
108121

109-
# alibaba has a separate node manager that uses the service account kube-system/alibaba-cloud-controller-manager.
110122
# The operator must have these permissions to then grant them to the alibaba node manager. (note it also uses some of the ones requred by vsphere)
111123
- apiGroups:
112124
- ""
@@ -127,7 +139,7 @@ rules:
127139
- patch
128140

129141
# nutanix has a separate node manager that uses the service account kube-system/nutanix-cloud-controller-manager.
130-
# The operator must have these permissions to then grant them to the nutanix node manager. (note it also uses some of the ones requred by vsphere and alibaba)
142+
# The operator must have these permissions to then grant them to the nutanix node manager. (note it also uses some of the ones requred by vsphere)
131143
- apiGroups:
132144
- ""
133145
resources:

manifests/image-references

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ spec:
66
from:
77
kind: DockerImage
88
name: quay.io/openshift/origin-cluster-cloud-controller-manager-operator
9-
- name: alibaba-cloud-controller-manager
10-
from:
11-
kind: DockerImage
12-
name: quay.io/openshift/origin-alibaba-cloud-controller-manager
139
- name: aws-cloud-controller-manager
1410
from:
1511
kind: DockerImage

pkg/cloud/alibaba/alibaba.go

Lines changed: 0 additions & 87 deletions
This file was deleted.

pkg/cloud/alibaba/alibaba_test.go

Lines changed: 0 additions & 50 deletions
This file was deleted.

pkg/cloud/alibaba/assets/alibaba-cloud-controller-manager-clusterrole.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

pkg/cloud/alibaba/assets/alibaba-cloud-controller-manager-clusterrolebinding.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)