Skip to content

Commit

Permalink
Promote feature gate EndpointSlice to GA
Browse files Browse the repository at this point in the history
Signed-off-by: Hongliang Liu <lhongliang@vmware.com>
  • Loading branch information
hongliangl committed Sep 18, 2023
1 parent 7da95b1 commit 0969ae5
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 69 deletions.
5 changes: 0 additions & 5 deletions build/charts/antrea/conf/antrea-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ featureGates:
# Service traffic.
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "AntreaProxy" "default" true) }}

# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "EndpointSlice" "default" true) }}

# Enable TopologyAwareHints in AntreaProxy. This requires AntreaProxy and EndpointSlice to be
# enabled, otherwise this flag will not take effect.
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "TopologyAwareHints" "default" true) }}
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5466,11 +5466,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable TopologyAwareHints in AntreaProxy. This requires AntreaProxy and EndpointSlice to be
# enabled, otherwise this flag will not take effect.
# TopologyAwareHints: true
Expand Down Expand Up @@ -6819,7 +6814,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 3f29ab6bd7105c6a6b30dafad282ac88a606e7aefe5914b7787aeeaafa7b4f8d
checksum/config: bd3cc2357f4f4840922ea96aae5b57153ba83fde408981db5333e53cc24255d8
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -7060,7 +7055,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 3f29ab6bd7105c6a6b30dafad282ac88a606e7aefe5914b7787aeeaafa7b4f8d
checksum/config: bd3cc2357f4f4840922ea96aae5b57153ba83fde408981db5333e53cc24255d8
labels:
app: antrea
component: antrea-controller
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5466,11 +5466,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable TopologyAwareHints in AntreaProxy. This requires AntreaProxy and EndpointSlice to be
# enabled, otherwise this flag will not take effect.
# TopologyAwareHints: true
Expand Down Expand Up @@ -6819,7 +6814,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 3f29ab6bd7105c6a6b30dafad282ac88a606e7aefe5914b7787aeeaafa7b4f8d
checksum/config: bd3cc2357f4f4840922ea96aae5b57153ba83fde408981db5333e53cc24255d8
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -7061,7 +7056,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 3f29ab6bd7105c6a6b30dafad282ac88a606e7aefe5914b7787aeeaafa7b4f8d
checksum/config: bd3cc2357f4f4840922ea96aae5b57153ba83fde408981db5333e53cc24255d8
labels:
app: antrea
component: antrea-controller
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea-gke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5466,11 +5466,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable TopologyAwareHints in AntreaProxy. This requires AntreaProxy and EndpointSlice to be
# enabled, otherwise this flag will not take effect.
# TopologyAwareHints: true
Expand Down Expand Up @@ -6819,7 +6814,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: f72133ab696861e8ad657749229d1449f856a7b84fb37c933db72debf8c57a30
checksum/config: b60de279ae16a5513b971fbc10031f7c520787cfdfd13e2c59063dc2b2c8a8be
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -7058,7 +7053,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: f72133ab696861e8ad657749229d1449f856a7b84fb37c933db72debf8c57a30
checksum/config: b60de279ae16a5513b971fbc10031f7c520787cfdfd13e2c59063dc2b2c8a8be
labels:
app: antrea
component: antrea-controller
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea-ipsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5479,11 +5479,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable TopologyAwareHints in AntreaProxy. This requires AntreaProxy and EndpointSlice to be
# enabled, otherwise this flag will not take effect.
# TopologyAwareHints: true
Expand Down Expand Up @@ -6832,7 +6827,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 62fe59882b960435e6de67c414b3ea71463d9c1eb97a024a69dd0aa6e506deff
checksum/config: 6de7d12710db8233e2b3bc744a0e646aee919454499a28c6afd3755744d4bde8
checksum/ipsec-secret: d0eb9c52d0cd4311b6d252a951126bf9bea27ec05590bed8a394f0f792dcb2a4
labels:
app: antrea
Expand Down Expand Up @@ -7117,7 +7112,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 62fe59882b960435e6de67c414b3ea71463d9c1eb97a024a69dd0aa6e506deff
checksum/config: 6de7d12710db8233e2b3bc744a0e646aee919454499a28c6afd3755744d4bde8
labels:
app: antrea
component: antrea-controller
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea-windows-containerd-with-ovs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1beta1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable NodePortLocal feature to make the Pods reachable externally through NodePort
# NodePortLocal: true
Expand Down Expand Up @@ -240,7 +235,7 @@ kind: ConfigMap
metadata:
labels:
app: antrea
name: antrea-windows-config-cb2hmgg648
name: antrea-windows-config-c2c7f4kbbc
namespace: kube-system
---
apiVersion: apps/v1
Expand Down Expand Up @@ -355,7 +350,7 @@ spec:
operator: Exists
volumes:
- configMap:
name: antrea-windows-config-cb2hmgg648
name: antrea-windows-config-c2c7f4kbbc
name: antrea-windows-config
- configMap:
defaultMode: 420
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea-windows-containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1beta1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable NodePortLocal feature to make the Pods reachable externally through NodePort
# NodePortLocal: true
Expand Down Expand Up @@ -191,7 +186,7 @@ kind: ConfigMap
metadata:
labels:
app: antrea
name: antrea-windows-config-cb2hmgg648
name: antrea-windows-config-c2c7f4kbbc
namespace: kube-system
---
apiVersion: apps/v1
Expand Down Expand Up @@ -275,7 +270,7 @@ spec:
operator: Exists
volumes:
- configMap:
name: antrea-windows-config-cb2hmgg648
name: antrea-windows-config-c2c7f4kbbc
name: antrea-windows-config
- configMap:
defaultMode: 420
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1beta1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable NodePortLocal feature to make the Pods reachable externally through NodePort
# NodePortLocal: true
Expand Down Expand Up @@ -177,7 +172,7 @@ kind: ConfigMap
metadata:
labels:
app: antrea
name: antrea-windows-config-cb2hmgg648
name: antrea-windows-config-c2c7f4kbbc
namespace: kube-system
---
apiVersion: apps/v1
Expand Down Expand Up @@ -265,7 +260,7 @@ spec:
operator: Exists
volumes:
- configMap:
name: antrea-windows-config-cb2hmgg648
name: antrea-windows-config-c2c7f4kbbc
name: antrea-windows-config
- configMap:
defaultMode: 420
Expand Down
9 changes: 2 additions & 7 deletions build/yamls/antrea.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5466,11 +5466,6 @@ data:
# Service traffic.
# AntreaProxy: true
# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true
# Enable TopologyAwareHints in AntreaProxy. This requires AntreaProxy and EndpointSlice to be
# enabled, otherwise this flag will not take effect.
# TopologyAwareHints: true
Expand Down Expand Up @@ -6819,7 +6814,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 0916c9bded20cacbfe338c02c0128325d00b246fabb96488a95baa2a54ad7616
checksum/config: 097c0152deaf8e5b6e6b832dd48a77e0e7334c887eabc112adee31deffed09bc
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -7058,7 +7053,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 0916c9bded20cacbfe338c02c0128325d00b246fabb96488a95baa2a54ad7616
checksum/config: 097c0152deaf8e5b6e6b832dd48a77e0e7334c887eabc112adee31deffed09bc
labels:
app: antrea
component: antrea-controller
Expand Down
5 changes: 0 additions & 5 deletions build/yamls/windows/base/conf/antrea-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ featureGates:
# Service traffic.
# AntreaProxy: true

# Enable EndpointSlice support in AntreaProxy. Don't enable this feature unless that EndpointSlice
# API version v1beta1 is supported and set as enabled in Kubernetes. If AntreaProxy is not enabled,
# this flag will not take effect.
# EndpointSlice: true

# Enable NodePortLocal feature to make the Pods reachable externally through NodePort
# NodePortLocal: true

Expand Down
2 changes: 1 addition & 1 deletion docs/feature-gates.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ edit the Agent configuration in the
| Feature Name | Component | Default | Stage | Alpha Release | Beta Release | GA Release | Extra Requirements | Notes |
|-------------------------------|--------------------|---------|-------|---------------|--------------|------------|--------------------|-----------------------------------------------|
| `AntreaProxy` | Agent | `true` | Beta | v0.8 | v0.11 | N/A | Yes | Must be enabled for Windows. |
| `EndpointSlice` | Agent | `true` | Beta | v0.13.0 | v1.11 | N/A | Yes | |
| `EndpointSlice` | Agent | `true` | GA | v0.13.0 | v1.11 | v1.14 | Yes | |
| `TopologyAwareHints` | Agent | `true` | Beta | v1.8 | v1.12 | N/A | Yes | |
| `CleanupStaleUDPSvcConntrack` | Agent | `false` | Alpha | v1.13 | N/A | N/A | Yes | |
| `LoadBalancerModeDSR` | Agent | `false` | Alpha | v1.13 | N/A | N/A | Yes | |
Expand Down
2 changes: 1 addition & 1 deletion pkg/apiserver/handlers/featuregates/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func Test_getGatesResponse(t *testing.T) {
{Component: "agent", Name: "AntreaPolicy", Status: "Disabled", Version: "BETA"},
{Component: "agent", Name: "AntreaProxy", Status: "Enabled", Version: "BETA"},
{Component: "agent", Name: "Egress", Status: egressStatus, Version: "BETA"},
{Component: "agent", Name: "EndpointSlice", Status: "Enabled", Version: "BETA"},
{Component: "agent", Name: "EndpointSlice", Status: "Enabled"},
{Component: "agent", Name: "AntreaIPAM", Status: "Disabled", Version: "ALPHA"},
{Component: "agent", Name: "Traceflow", Status: "Enabled", Version: "BETA"},
{Component: "agent", Name: "FlowExporter", Status: "Disabled", Version: "ALPHA"},
Expand Down
3 changes: 2 additions & 1 deletion pkg/features/antrea_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const (

// alpha: v0.13
// beta: v1.11
// GA: v1.14
// Enable EndpointSlice support in AntreaProxy. If AntreaProxy is not enabled, this
// flag will not take effect.
EndpointSlice featuregate.Feature = "EndpointSlice"
Expand Down Expand Up @@ -155,7 +156,7 @@ var (
AntreaPolicy: {Default: true, PreRelease: featuregate.Beta},
AntreaProxy: {Default: true, PreRelease: featuregate.Beta},
Egress: {Default: true, PreRelease: featuregate.Beta},
EndpointSlice: {Default: true, PreRelease: featuregate.Beta},
EndpointSlice: {Default: true, PreRelease: featuregate.GA, LockToDefault: true},
TopologyAwareHints: {Default: true, PreRelease: featuregate.Beta},
CleanupStaleUDPSvcConntrack: {Default: false, PreRelease: featuregate.Alpha},
Traceflow: {Default: true, PreRelease: featuregate.Beta},
Expand Down

0 comments on commit 0969ae5

Please sign in to comment.