Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -24420,9 +24420,9 @@
"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"
"ipForwarding": {
"description": "IPForwarding controls IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is set to Restricted, and Kubernetes related traffic is still forwarded appropriately, but other IP traffic will not be routed by the OCP node. If there is a desire to allow the host to forward traffic across OVN-Kubernetes managed interfaces, then set this field to \"Global\". The supported values are \"Restricted\" and \"Global\".",
"type": "string"
},
"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.",
Expand Down
7 changes: 3 additions & 4 deletions operator/v1/0000_70_cluster-network-operator_01.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,9 @@ 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
ipForwarding:
description: IPForwarding controls IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex). By default this is set to Restricted, and Kubernetes related traffic is still forwarded appropriately, but other IP traffic will not be routed by the OCP node. If there is a desire to allow the host to forward traffic across OVN-Kubernetes managed interfaces, then set this field to "Global". The supported values are "Restricted" and "Global".
type: string
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
Expand Down
23 changes: 17 additions & 6 deletions operator/v1/types_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,17 @@ type HybridOverlayConfig struct {
type IPsecConfig struct {
}

type IPForwardingMode string

const (
// IPForwardingRestricted limits the IP forwarding on OVN-Kube managed interfaces (br-ex, br-ex1) to only required
// service and other k8s related traffic
IPForwardingRestricted IPForwardingMode = "Restricted"

// IPForwardingGlobal allows all IP traffic to be forwarded across OVN-Kube managed interfaces
IPForwardingGlobal IPForwardingMode = "Global"
)

// GatewayConfig holds node gateway-related parsed config file parameters and command-line overrides
type GatewayConfig struct {
// RoutingViaHost allows pod egress traffic to exit via the ovn-k8s-mp0 management port
Expand All @@ -489,13 +500,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
// IPForwarding controls IP forwarding for all traffic on OVN-Kubernetes managed interfaces (such as br-ex).
// By default this is set to Restricted, and Kubernetes related traffic is still forwarded appropriately, but other
// IP traffic will not be routed by the OCP node. If there is a desire to allow the host to forward traffic across
// OVN-Kubernetes managed interfaces, then set this field to "Global".
// The supported values are "Restricted" and "Global".
// +optional
EnableIPForwarding bool `json:"enableIPForwarding,omitempty"`
IPForwarding IPForwardingMode `json:"ipForwarding,omitempty"`
}

type ExportNetworkFlows struct {
Expand Down
6 changes: 3 additions & 3 deletions operator/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.