Skip to content

Commit 76c7a6d

Browse files
committed
ClusterNetworkOperator API: remove additionalRoutingCapabilities gate
Removing the feature gate as the deployed daemonset is being used by metallb and covered by MetalLB tests. Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
1 parent dfe4d9f commit 76c7a6d

File tree

11 files changed

+55
-16
lines changed

11 files changed

+55
-16
lines changed

features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
| MultiArchInstallAzure| | | | | | |
99
| GatewayAPI| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | | |
1010
| AWSClusterHostedDNS| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
11-
| AdditionalRoutingCapabilities| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
1211
| AutomatedEtcdBackup| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
1312
| BootcNodeManagement| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
1413
| CSIDriverSharedResource| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
@@ -55,6 +54,7 @@
5554
| VolumeGroupSnapshot| | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
5655
| ExternalOIDC| <span style="background-color: #519450">Enabled</span> | | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
5756
| AWSEFSDriverVolumeMetrics| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
57+
| AdditionalRoutingCapabilities| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
5858
| AdminNetworkPolicy| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
5959
| AlibabaPlatform| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
6060
| AzureWorkloadIdentity| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |

features/features.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ var (
240240
contactPerson("jcaamano").
241241
productScope(ocpSpecific).
242242
enhancementPR(legacyFeatureGateWithoutEnhancement).
243-
enableIn(configv1.DevPreviewNoUpgrade, configv1.TechPreviewNoUpgrade).
243+
enableIn(configv1.Default, configv1.DevPreviewNoUpgrade, configv1.TechPreviewNoUpgrade).
244244
mustRegister()
245245

246246
FeatureGateRouteAdvertisements = newFeatureGate("RouteAdvertisements").

operator/v1/types_network.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type NetworkList struct {
5454

5555
// NetworkSpec is the top-level network configuration object.
5656
// +kubebuilder:validation:XValidation:rule="!has(self.defaultNetwork) || !has(self.defaultNetwork.ovnKubernetesConfig) || !has(self.defaultNetwork.ovnKubernetesConfig.gatewayConfig) || !has(self.defaultNetwork.ovnKubernetesConfig.gatewayConfig.ipForwarding) || self.defaultNetwork.ovnKubernetesConfig.gatewayConfig.ipForwarding == oldSelf.defaultNetwork.ovnKubernetesConfig.gatewayConfig.ipForwarding || self.defaultNetwork.ovnKubernetesConfig.gatewayConfig.ipForwarding == 'Restricted' || self.defaultNetwork.ovnKubernetesConfig.gatewayConfig.ipForwarding == 'Global'",message="invalid value for IPForwarding, valid values are 'Restricted' or 'Global'"
57-
// +openshift:validation:FeatureGateAwareXValidation:featureGate=AdditionalRoutingCapabilities,rule="(has(self.additionalRoutingCapabilities) && ('FRR' in self.additionalRoutingCapabilities.providers)) || !has(self.defaultNetwork) || !has(self.defaultNetwork.ovnKubernetesConfig) || !has(self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements) || self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements != 'Enabled'",message="Route advertisements cannot be Enabled if 'FRR' routing capability provider is not available"
57+
// +openshift:validation:FeatureGateAwareXValidation:featureGate=RouteAdvertisements,rule="(has(self.additionalRoutingCapabilities) && ('FRR' in self.additionalRoutingCapabilities.providers)) || !has(self.defaultNetwork) || !has(self.defaultNetwork.ovnKubernetesConfig) || !has(self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements) || self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements != 'Enabled'",message="Route advertisements cannot be Enabled if 'FRR' routing capability provider is not available"
5858
type NetworkSpec struct {
5959
OperatorSpec `json:",inline"`
6060

@@ -137,6 +137,7 @@ type NetworkSpec struct {
137137
// respective documentation and configuration options.
138138
// +openshift:enable:FeatureGate=AdditionalRoutingCapabilities
139139
// +optional
140+
// +nullable
140141
AdditionalRoutingCapabilities *AdditionalRoutingCapabilities `json:"additionalRoutingCapabilities,omitempty"`
141142
}
142143

operator/v1/zz_generated.crd-manifests/0000_70_network_01_networks-CustomNoUpgrade.crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ spec:
189189
capabilities acquired through the enablement of these components but may
190190
require specific configuration on their side to do so; refer to their
191191
respective documentation and configuration options.
192+
nullable: true
192193
properties:
193194
providers:
194195
description: |-

operator/v1/zz_generated.crd-manifests/0000_70_network_01_networks-Default.crd.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,40 @@ spec:
178178
x-kubernetes-list-map-keys:
179179
- name
180180
x-kubernetes-list-type: map
181+
additionalRoutingCapabilities:
182+
description: |-
183+
additionalRoutingCapabilities describes components and relevant
184+
configuration providing additional routing capabilities. When set, it
185+
enables such components and the usage of the routing capabilities they
186+
provide for the machine network. Upstream operators, like MetalLB
187+
operator, requiring these capabilities may rely on, or automatically set
188+
this attribute. Network plugins may leverage advanced routing
189+
capabilities acquired through the enablement of these components but may
190+
require specific configuration on their side to do so; refer to their
191+
respective documentation and configuration options.
192+
nullable: true
193+
properties:
194+
providers:
195+
description: |-
196+
providers is a set of enabled components that provide additional routing
197+
capabilities. Entries on this list must be unique. The only valid value
198+
is currrently "FRR" which provides FRR routing capabilities through the
199+
deployment of FRR.
200+
items:
201+
description: RoutingCapabilitiesProvider is a component providing
202+
routing capabilities.
203+
enum:
204+
- FRR
205+
type: string
206+
maxItems: 1
207+
minItems: 1
208+
type: array
209+
x-kubernetes-list-type: atomic
210+
x-kubernetes-validations:
211+
- rule: self.all(x, self.exists_one(y, x == y))
212+
required:
213+
- providers
214+
type: object
181215
clusterNetwork:
182216
description: |-
183217
clusterNetwork is the IP address pool to use for pod IPs.

operator/v1/zz_generated.crd-manifests/0000_70_network_01_networks-DevPreviewNoUpgrade.crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ spec:
189189
capabilities acquired through the enablement of these components but may
190190
require specific configuration on their side to do so; refer to their
191191
respective documentation and configuration options.
192+
nullable: true
192193
properties:
193194
providers:
194195
description: |-

operator/v1/zz_generated.crd-manifests/0000_70_network_01_networks-TechPreviewNoUpgrade.crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ spec:
189189
capabilities acquired through the enablement of these components but may
190190
require specific configuration on their side to do so; refer to their
191191
respective documentation and configuration options.
192+
nullable: true
192193
properties:
193194
providers:
194195
description: |-

operator/v1/zz_generated.featuregated-crd-manifests/networks.operator.openshift.io/AdditionalRoutingCapabilities.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ spec:
189189
capabilities acquired through the enablement of these components but may
190190
require specific configuration on their side to do so; refer to their
191191
respective documentation and configuration options.
192+
nullable: true
192193
properties:
193194
providers:
194195
description: |-
@@ -874,13 +875,6 @@ spec:
874875
type: boolean
875876
type: object
876877
x-kubernetes-validations:
877-
- message: Route advertisements cannot be Enabled if 'FRR' routing capability
878-
provider is not available
879-
rule: (has(self.additionalRoutingCapabilities) && ('FRR' in self.additionalRoutingCapabilities.providers))
880-
|| !has(self.defaultNetwork) || !has(self.defaultNetwork.ovnKubernetesConfig)
881-
|| !has(self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements)
882-
|| self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements !=
883-
'Enabled'
884878
- message: invalid value for IPForwarding, valid values are 'Restricted'
885879
or 'Global'
886880
rule: '!has(self.defaultNetwork) || !has(self.defaultNetwork.ovnKubernetesConfig)

operator/v1/zz_generated.featuregated-crd-manifests/networks.operator.openshift.io/RouteAdvertisements.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,13 @@ spec:
857857
type: boolean
858858
type: object
859859
x-kubernetes-validations:
860+
- message: Route advertisements cannot be Enabled if 'FRR' routing capability
861+
provider is not available
862+
rule: (has(self.additionalRoutingCapabilities) && ('FRR' in self.additionalRoutingCapabilities.providers))
863+
|| !has(self.defaultNetwork) || !has(self.defaultNetwork.ovnKubernetesConfig)
864+
|| !has(self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements)
865+
|| self.defaultNetwork.ovnKubernetesConfig.routeAdvertisements !=
866+
'Enabled'
860867
- message: invalid value for IPForwarding, valid values are 'Restricted'
861868
or 'Global'
862869
rule: '!has(self.defaultNetwork) || !has(self.defaultNetwork.ovnKubernetesConfig)

payload-manifests/featuregates/featureGate-Hypershift-Default.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
{
1717
"name": "AWSClusterHostedDNS"
1818
},
19-
{
20-
"name": "AdditionalRoutingCapabilities"
21-
},
2219
{
2320
"name": "AutomatedEtcdBackup"
2421
},
@@ -177,6 +174,9 @@
177174
{
178175
"name": "AWSEFSDriverVolumeMetrics"
179176
},
177+
{
178+
"name": "AdditionalRoutingCapabilities"
179+
},
180180
{
181181
"name": "AdminNetworkPolicy"
182182
},

0 commit comments

Comments
 (0)