Skip to content

Commit

Permalink
update CEL to be more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
adriengentil committed Jun 12, 2023
1 parent 99f7e5b commit db0028c
Show file tree
Hide file tree
Showing 8 changed files with 364 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,6 @@ spec:
external:
description: External contains settings specific to the generic External infrastructure provider.
type: object
x-kubernetes-validations:
- message: cloudControllerManager added or removed once set
rule: has(self.cloudControllerManager) == has(oldSelf.cloudControllerManager)
gcp:
description: GCP contains settings specific to the Google Cloud Platform infrastructure provider.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,10 @@ spec:
description: External contains settings specific to the generic External infrastructure provider.
properties:
cloudControllerManager:
description: CloudControllerManager contains settings specific to the external Cloud Controller Manager (a.k.a. CCM or CPI)
description: cloudControllerManager contains settings specific to the external Cloud Controller Manager (a.k.a. CCM or CPI). When omitted, new nodes will be not tainted and no extra initialization from the cloud controller manager is expected.
properties:
state:
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."
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 Valid values are \"External\", \"None\" and omitted. 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."
enum:
- ""
- External
Expand All @@ -631,12 +631,9 @@ spec:
rule: self == oldSelf
type: object
x-kubernetes-validations:
- message: state cannot be added or removed once set
rule: has(self.state) == has(oldSelf.state)
- message: state may not be added or removed once set
rule: (has(self.state) == has(oldSelf.state)) || (!has(oldSelf.state) && self.state != "External")
type: object
x-kubernetes-validations:
- message: cloudControllerManager added or removed once set
rule: has(self.cloudControllerManager) == has(oldSelf.cloudControllerManager)
gcp:
description: GCP contains settings specific to the Google Cloud Platform infrastructure provider.
properties:
Expand Down
2 changes: 1 addition & 1 deletion config/v1/feature_gates.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ var (
Name: FeatureGateExternalCloudProviderExternal,
},
OwningJiraComponent: "cloud-provider",
ResponsiblePerson: "jspeed",
ResponsiblePerson: "elmiko",
OwningProduct: ocpSpecific,
}

Expand Down
Loading

0 comments on commit db0028c

Please sign in to comment.