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 Aug 16, 2023
1 parent 5d848ba commit ff55c7d
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: a3168b9ac447a8852280ded74b420b5afa9cc2f6fca169e3e2da6e44b9e96428
checksum/config: 1d217a2ca4db067929479fd4f28b3a5b25fa74e1e9153bff8490a2636d3c192b
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: a3168b9ac447a8852280ded74b420b5afa9cc2f6fca169e3e2da6e44b9e96428
checksum/config: 1d217a2ca4db067929479fd4f28b3a5b25fa74e1e9153bff8490a2636d3c192b
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: a3168b9ac447a8852280ded74b420b5afa9cc2f6fca169e3e2da6e44b9e96428
checksum/config: 1d217a2ca4db067929479fd4f28b3a5b25fa74e1e9153bff8490a2636d3c192b
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: a3168b9ac447a8852280ded74b420b5afa9cc2f6fca169e3e2da6e44b9e96428
checksum/config: 1d217a2ca4db067929479fd4f28b3a5b25fa74e1e9153bff8490a2636d3c192b
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: 1be8ab6f39c7b1d3742d49f9614a5fae317932ce2cc7b2473cc12a920f13641d
checksum/config: 2be321c1b23dc9ed323b18c924e1e05629a5e66a1678892a25903b2af9ef4951
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: 1be8ab6f39c7b1d3742d49f9614a5fae317932ce2cc7b2473cc12a920f13641d
checksum/config: 2be321c1b23dc9ed323b18c924e1e05629a5e66a1678892a25903b2af9ef4951
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: 9d2ce5aebdb9b1a668615a90578317745bafc6052b7c29431fd009a0ba65d62a
checksum/config: 3fe287da0582af2b28e5f414c936facec012d1cbe4e2743b6f223977ecf3724c
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: 9d2ce5aebdb9b1a668615a90578317745bafc6052b7c29431fd009a0ba65d62a
checksum/config: 3fe287da0582af2b28e5f414c936facec012d1cbe4e2743b6f223977ecf3724c
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: cc9b64c3b915bfd5a500d76f39a5b650f86819e144dbccea5019b4ecd4192292
checksum/config: ebafcdf83eeed2174ffa33c0a7229c67b14602544ee0995f2a48fe8ad21ab3cc
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: cc9b64c3b915bfd5a500d76f39a5b650f86819e144dbccea5019b4ecd4192292
checksum/config: ebafcdf83eeed2174ffa33c0a7229c67b14602544ee0995f2a48fe8ad21ab3cc
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 ff55c7d

Please sign in to comment.