diff --git a/openapi/generated_openapi/zz_generated.openapi.go b/openapi/generated_openapi/zz_generated.openapi.go index 93a38b93c66..c953f81a6b4 100644 --- a/openapi/generated_openapi/zz_generated.openapi.go +++ b/openapi/generated_openapi/zz_generated.openapi.go @@ -41739,6 +41739,13 @@ func schema_openshift_api_operator_v1_GatewayConfig(ref common.ReferenceCallback Format: "", }, }, + "enableIPForwarding": { + SchemaProps: spec.SchemaProps{ + Description: "EnableIPForwarding enables IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is disabled, and Kubernetes related traffic is still forwarded appropriately. This setting is only useful if there is a desire to for the node to act as a router and forward traffic between interfaces on the host.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, diff --git a/openapi/openapi.json b/openapi/openapi.json index 92d64de3dbb..f52480fbfcb 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -24420,6 +24420,10 @@ "description": "GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides", "type": "object", "properties": { + "enableIPForwarding": { + "description": "EnableIPForwarding enables IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is disabled, and Kubernetes related traffic is still forwarded appropriately. This setting is only useful if there is a desire to for the node to act as a router and forward traffic between interfaces on the host.", + "type": "boolean" + }, "routingViaHost": { "description": "RoutingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out. If this is not set, traffic will always egress directly from OVN to outside without touching the host stack. Setting this to true means hardware offload will not be supported. Default is false if GatewayConfig is specified.", "type": "boolean" diff --git a/operator/v1/0000_70_cluster-network-operator_01.crd.yaml b/operator/v1/0000_70_cluster-network-operator_01.crd.yaml index 0adfde4b4da..33f3e77c853 100644 --- a/operator/v1/0000_70_cluster-network-operator_01.crd.yaml +++ b/operator/v1/0000_70_cluster-network-operator_01.crd.yaml @@ -216,6 +216,10 @@ spec: description: gatewayConfig holds the configuration for node gateway options. type: object properties: + enableIPForwarding: + description: EnableIPForwarding enables IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is disabled, and Kubernetes related traffic is still forwarded appropriately. This setting is only useful if there is a desire to for the node to act as a router and forward traffic between interfaces on the host. + type: boolean + default: false routingViaHost: description: RoutingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out. If this is not set, traffic will always egress directly from OVN to outside without touching the host stack. Setting this to true means hardware offload will not be supported. Default is false if GatewayConfig is specified. type: boolean diff --git a/operator/v1/types_network.go b/operator/v1/types_network.go index a3cea6b67d7..84a0a5a2e32 100644 --- a/operator/v1/types_network.go +++ b/operator/v1/types_network.go @@ -489,6 +489,13 @@ type GatewayConfig struct { // +kubebuilder:default:=false // +optional RoutingViaHost bool `json:"routingViaHost,omitempty"` + // EnableIPForwarding enables IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). + // By default this is disabled, and Kubernetes related traffic is still forwarded appropriately. This setting + // is only useful if there is a desire to for the node to act as a router and forward traffic between interfaces + // on the host. + // +kubebuilder:default:=false + // +optional + EnableIPForwarding bool `json:"enableIPForwarding,omitempty"` } type ExportNetworkFlows struct { diff --git a/operator/v1/zz_generated.swagger_doc_generated.go b/operator/v1/zz_generated.swagger_doc_generated.go index 28d9f27a56a..e21e15a27c7 100644 --- a/operator/v1/zz_generated.swagger_doc_generated.go +++ b/operator/v1/zz_generated.swagger_doc_generated.go @@ -1257,8 +1257,9 @@ func (FeaturesMigration) SwaggerDoc() map[string]string { } var map_GatewayConfig = map[string]string{ - "": "GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides", - "routingViaHost": "RoutingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out. If this is not set, traffic will always egress directly from OVN to outside without touching the host stack. Setting this to true means hardware offload will not be supported. Default is false if GatewayConfig is specified.", + "": "GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides", + "routingViaHost": "RoutingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port into the host before sending it out. If this is not set, traffic will always egress directly from OVN to outside without touching the host stack. Setting this to true means hardware offload will not be supported. Default is false if GatewayConfig is specified.", + "enableIPForwarding": "EnableIPForwarding enables IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is disabled, and Kubernetes related traffic is still forwarded appropriately. This setting is only useful if there is a desire to for the node to act as a router and forward traffic between interfaces on the host.", } func (GatewayConfig) SwaggerDoc() map[string]string {