Skip to content

Commit

Permalink
Revert "Antrea Agent configuration parameters for OVS secondary netwo…
Browse files Browse the repository at this point in the history
…rk" (#5341)

This reverts commit 4420cef.
The OVS secondary network parameters were added for overlay secondary
network support, but the feature was not continued.

Signed-off-by: Jianjun Shen <[email protected]>
  • Loading branch information
jianjuns authored Aug 5, 2023
1 parent 4746217 commit 49638ef
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 74 deletions.
6 changes: 0 additions & 6 deletions build/charts/antrea/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ Kubernetes: `>= 1.16.0-0`
| nodePortLocal.portRange | string | `"61000-62000"` | Port range used by NodePortLocal when creating Pod port mappings. |
| ovs.bridgeName | string | `"br-int"` | Name of the OVS bridge antrea-agent will create and use. |
| ovs.hwOffload | bool | `false` | Enable hardware offload for the OVS bridge (required additional configuration). |
| secondaryNetwork.ovs.datapathType | string | `"system"` | 'system' is the default value and corresponds to the kernel datapath. Use 'netdev' to run OVS in userspace mode. Userspace mode requires the tun device driver to be available. |
| secondaryNetwork.ovs.enable | bool | `false` | Enable OVS bridge configuration for secondary network. |
| secondaryNetwork.ovs.integrationBridgeName | string | `"br-secnet-int"` | Secondary network OVS integration bridge name. |
| secondaryNetwork.ovs.patchPort | string | `"br-secnet-patch0"` | Name of the OVS patch port which connects the integration and transport bridge. |
| secondaryNetwork.ovs.transportBridgeName | string | `"br-secnet-trans"` | Secondary network OVS transport bridge name. |
| secondaryNetwork.tunnelType | string | `"geneve"` | Tunnel protocol used for encapsulating traffic across Nodes. It must be one of "geneve", "vxlan", "gre", "stt". |
| serviceCIDR | string | `""` | IPv4 CIDR range used for Services. Required when AntreaProxy is disabled. |
| serviceCIDRv6 | string | `""` | IPv6 CIDR range used for Services. Required when AntreaProxy is disabled. |
| testing.coverage | bool | `false` | Enable code coverage measurement (used when testing Antrea only). |
Expand Down
26 changes: 0 additions & 26 deletions build/charts/antrea/conf/antrea-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -413,29 +413,3 @@ auditLogging:
# Compress enables gzip compression on rotated files.
compress: {{ .compress }}
{{- end }}

{{- if .Values.featureGates.SecondaryNetwork }}

secondaryNetwork:
{{- with .Values.secondaryNetwork }}
# OVS bridge configuration for secondary network.
ovs:
# Enable OVS bridge configuration for secondary network.
enable: {{ .ovs.enable }}
# Secondary network OVS integration bridge name. Ensure it doesn't conflict with your existing OpenVSwitch bridges.
integrationBridgeName: {{ .ovs.integrationBridgeName | quote }}
# Secondary network OVS transport bridge name. Ensure it doesn't conflict with your existing OpenVSwitch bridges.
transportBridgeName: {{ .ovs.transportBridgeName | quote }}
# Datapath type to use for the OpenVSwitch bridge created by Antrea. Supported values are:
# - system
# - netdev
# 'system' is the default value and corresponds to the kernel datapath. Use 'netdev' to run
# OVS in userspace mode. Userspace mode requires the tun device driver to be available.
datapathType: {{ .ovs.datapathType | quote }}
# Name of the OVS patch port which connects the integration and transport bridge.
patchPort: {{ .ovs.patchPort | quote }}
# Tunnel protocol used for encapsulating traffic across Nodes. It must be one
# of "geneve", "vxlan", "gre", "stt".
tunnelType: {{ .tunnelType | quote }}
{{- end }}
{{- end }}
20 changes: 0 additions & 20 deletions build/charts/antrea/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,6 @@ ovs:
# configuration).
hwOffload: false

secondaryNetwork:
ovs:
# -- Enable OVS bridge configuration for secondary network.
enable: false
# -- Secondary network OVS integration bridge name.
integrationBridgeName: "br-secnet-int"
# -- Secondary network OVS transport bridge name.
transportBridgeName: "br-secnet-trans"
# -- Datapath type to use for the OpenVSwitch bridge created by Antrea. Supported values are:
# - system
# - netdev
# -- 'system' is the default value and corresponds to the kernel datapath. Use 'netdev' to run
# OVS in userspace mode. Userspace mode requires the tun device driver to be available.
datapathType: "system"
# -- Name of the OVS patch port which connects the integration and transport bridge.
patchPort: "br-secnet-patch0"
# -- Tunnel protocol used for encapsulating traffic across Nodes. It must be one
# of "geneve", "vxlan", "gre", "stt".
tunnelType: "geneve"

wireGuard:
# -- Port for WireGuard to send and receive traffic.
port: 51820
Expand Down
22 changes: 0 additions & 22 deletions pkg/config/agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ type AgentConfig struct {
NodeType string `yaml:"nodeType,omitempty"`
// ExternalNode related configurations.
ExternalNode ExternalNodeConfig `yaml:"externalNode,omitempty"`
// Antrea's native secondary network configuration.
SecondaryNetwork SecondaryNetworkConfig `yaml:"secondaryNetwork,omitempty"`
// AuditLogging supports configuring log rotation for audit logs.
AuditLogging AuditLoggingConfig `yaml:"auditLogging,omitempty"`
}
Expand Down Expand Up @@ -370,26 +368,6 @@ type PolicyBypassRule struct {
Port int `yaml:"port,omitempty"`
}

type SecondaryNetworkConfig struct {
// Secondary network specific OVS configuration.
OVS SecondaryNetworkOVSConfig `yaml:"ovs,omitempty"`
// TunnelType to be used for node to node transport, which is part of the same virtual network.
TunnelType string `yaml:"tunnelType,omitempty"`
}

type SecondaryNetworkOVSConfig struct {
// Enable Antrea's native secondary network OVS configuration.
Enable bool `yaml:"enable,omitempty"`
// OVS integration bridge name.
OVSIntegrationBridgeName string `yaml:"ovsIntegrationBridgeName,omitempty"`
// OVS transport bridge name.
OVSTransportBridgeName string `yaml:"ovsTransportBridgeName,omitempty"`
// OVS Datapath type to use for the OpenVSwitch bridge created by Antrea.
OVSDatapathType string `yaml:"ovsDatapathType,omitempty"`
// OVS patch port which connects the integration and transport bridge.
OVSPatchPort string `yaml:"ovsPatchPort,omitempty"`
}

type AuditLoggingConfig struct {
// MaxSize is the maximum size in MB of a log file before it gets rotated. Defaults to 500MB.
MaxSize int32 `yaml:"maxSize,omitempty"`
Expand Down

0 comments on commit 49638ef

Please sign in to comment.