Skip to content

Commit ab002e9

Browse files
Merge pull request #1409 from lobziik/extrernal-resource-remove-ccm
Remove `CloudControllerManagerSpec` from the `External` platform spec
2 parents 42edf4f + e8d6cd0 commit ab002e9

7 files changed

+2
-131
lines changed

config/v1/0000_10_config-operator_01_infrastructure-Default.crd.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,6 @@ spec:
7979
external:
8080
description: ExternalPlatformType represents generic infrastructure provider. Platform-specific components should be supplemented separately.
8181
properties:
82-
cloudControllerManager:
83-
description: CloudControllerManager contains settings specific to the external Cloud Controller Manager (a.k.a. CCM or CPI)
84-
properties:
85-
state:
86-
description: "state determines whether or not an external Cloud Controller Manager is expected to be installed within the cluster. https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/#running-cloud-controller-manager \n When set to \"External\", new nodes will be tainted as uninitialized when created, preventing them from running workloads until they are initialized by the cloud controller manager. When omitted or set to \"None\", new nodes will be not tainted and no extra initialization from the cloud controller manager is expected."
87-
enum:
88-
- ""
89-
- External
90-
- None
91-
type: string
92-
type: object
9382
platformName:
9483
default: Unknown
9584
description: PlatformName holds the arbitrary string representing the infrastructure provider name, expected to be set at the installation time. This field is solely for informational and reporting purposes and is not expected to be used for decision-making.

config/v1/0000_10_config-operator_01_infrastructure-TechPreviewNoUpgrade.crd.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,6 @@ spec:
7979
external:
8080
description: ExternalPlatformType represents generic infrastructure provider. Platform-specific components should be supplemented separately.
8181
properties:
82-
cloudControllerManager:
83-
description: CloudControllerManager contains settings specific to the external Cloud Controller Manager (a.k.a. CCM or CPI)
84-
properties:
85-
state:
86-
description: "state determines whether or not an external Cloud Controller Manager is expected to be installed within the cluster. https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/#running-cloud-controller-manager \n When set to \"External\", new nodes will be tainted as uninitialized when created, preventing them from running workloads until they are initialized by the cloud controller manager. When omitted or set to \"None\", new nodes will be not tainted and no extra initialization from the cloud controller manager is expected."
87-
enum:
88-
- ""
89-
- External
90-
- None
91-
type: string
92-
type: object
9382
platformName:
9483
default: Unknown
9584
description: PlatformName holds the arbitrary string representing the infrastructure provider name, expected to be set at the installation time. This field is solely for informational and reporting purposes and is not expected to be used for decision-making.

config/v1/types_infrastructure.go

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -227,36 +227,6 @@ const (
227227
IBMCloudProviderTypeUPI IBMCloudProviderType = "UPI"
228228
)
229229

230-
// CloudControllerManagerState defines whether Cloud Controller Manager presence is expected or not
231-
type CloudControllerManagerState string
232-
233-
const (
234-
// Cloud Controller Manager is enabled and expected to be installed.
235-
// This value indicates that new nodes should be tainted as uninitialized when created,
236-
// preventing them from running workloads until they are initialized by the cloud controller manager.
237-
CloudControllerManagerExternal CloudControllerManagerState = "External"
238-
239-
// Cloud Controller Manager is disabled and not expected to be installed.
240-
// This value indicates that new nodes should not be tainted
241-
// and no extra node initialization is expected from the cloud controller manager.
242-
CloudControllerManagerNone CloudControllerManagerState = "None"
243-
)
244-
245-
// CloudControllerManagerSpec holds Cloud Controller Manager (a.k.a. CCM or CPI) related settings
246-
type CloudControllerManagerSpec struct {
247-
// state determines whether or not an external Cloud Controller Manager is expected to
248-
// be installed within the cluster.
249-
// https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/#running-cloud-controller-manager
250-
//
251-
// When set to "External", new nodes will be tainted as uninitialized when created,
252-
// preventing them from running workloads until they are initialized by the cloud controller manager.
253-
// When omitted or set to "None", new nodes will be not tainted
254-
// and no extra initialization from the cloud controller manager is expected.
255-
// +kubebuilder:validation:Enum="";External;None
256-
// +optional
257-
State CloudControllerManagerState `json:"state"`
258-
}
259-
260230
// ExternalPlatformSpec holds the desired state for the generic External infrastructure provider.
261231
type ExternalPlatformSpec struct {
262232
// PlatformName holds the arbitrary string representing the infrastructure provider name, expected to be set at the installation time.
@@ -266,9 +236,6 @@ type ExternalPlatformSpec struct {
266236
// +kubebuilder:validation:XValidation:rule="oldSelf == 'Unknown' || self == oldSelf",message="platform name cannot be changed once set"
267237
// +optional
268238
PlatformName string `json:"platformName,omitempty"`
269-
// CloudControllerManager contains settings specific to the external Cloud Controller Manager (a.k.a. CCM or CPI)
270-
// +optional
271-
CloudControllerManager CloudControllerManagerSpec `json:"cloudControllerManager"`
272239
}
273240

274241
// PlatformSpec holds the desired state specific to the underlying infrastructure provider

config/v1/zz_generated.deepcopy.go

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

config/v1/zz_generated.swagger_doc_generated.go

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

openapi/generated_openapi/zz_generated.openapi.go

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

openapi/openapi.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4864,17 +4864,6 @@
48644864
}
48654865
}
48664866
},
4867-
"com.github.openshift.api.config.v1.CloudControllerManagerSpec": {
4868-
"description": "CloudControllerManagerSpec holds Cloud Controller Manager (a.k.a. CCM or CPI) related settings",
4869-
"type": "object",
4870-
"properties": {
4871-
"state": {
4872-
"description": "state determines whether or not an external Cloud Controller Manager is expected to be installed within the cluster. https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/#running-cloud-controller-manager\n\nWhen set to \"External\", new nodes will be tainted as uninitialized when created, preventing them from running workloads until they are initialized by the cloud controller manager. When omitted or set to \"None\", new nodes will be not tainted and no extra initialization from the cloud controller manager is expected.",
4873-
"type": "string",
4874-
"default": ""
4875-
}
4876-
}
4877-
},
48784867
"com.github.openshift.api.config.v1.ClusterCondition": {
48794868
"description": "ClusterCondition is a union of typed cluster conditions. The 'type' property determines which of the type-specific properties are relevant. When evaluated on a cluster, the condition may match, not match, or fail to evaluate.",
48804869
"type": "object",
@@ -5907,11 +5896,6 @@
59075896
"description": "ExternalPlatformSpec holds the desired state for the generic External infrastructure provider.",
59085897
"type": "object",
59095898
"properties": {
5910-
"cloudControllerManager": {
5911-
"description": "CloudControllerManager contains settings specific to the external Cloud Controller Manager (a.k.a. CCM or CPI)",
5912-
"default": {},
5913-
"$ref": "#/definitions/com.github.openshift.api.config.v1.CloudControllerManagerSpec"
5914-
},
59155899
"platformName": {
59165900
"description": "PlatformName holds the arbitrary string representing the infrastructure provider name, expected to be set at the installation time. This field is solely for informational and reporting purposes and is not expected to be used for decision-making.",
59175901
"type": "string",

0 commit comments

Comments
 (0)