diff --git a/build/yamls/antrea-windows.yml b/build/yamls/antrea-windows.yml index 09e87dad5a7..3f46e5c1fde 100644 --- a/build/yamls/antrea-windows.yml +++ b/build/yamls/antrea-windows.yml @@ -23,6 +23,11 @@ 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: false + # Enable flowexporter which exports polled conntrack connections as IPFIX flow records from each agent to a configured collector. # FlowExporter: false diff --git a/third_party/proxy/config/config.go b/third_party/proxy/config/config.go index 69733c5b03e..6dfd5d62adc 100644 --- a/third_party/proxy/config/config.go +++ b/third_party/proxy/config/config.go @@ -347,7 +347,8 @@ func (c *EndpointSliceConfig) handleUpdateEndpointSlice(oldObj, newObj interface return } for _, h := range c.eventHandlers { - klog.V(4).Infof("Calling handler.OnEndpointSliceUpdate") + klog.V(4).Infof("Calling handler.OnEndpointSliceUpdate from %+v", oldEndpointSlice) + klog.V(4).Infof("Calling handler.OnEndpointSliceUpdate to %+v", newEndpointSlice) h.OnEndpointSliceUpdate(oldEndpointSlice, newEndpointSlice) } } @@ -366,7 +367,7 @@ func (c *EndpointSliceConfig) handleDeleteEndpointSlice(obj interface{}) { } } for _, h := range c.eventHandlers { - klog.V(4).Infof("Calling handler.OnEndpointsDelete") + klog.V(4).Infof("Calling handler.OnEndpointsDelete %+v", endpointSlice) h.OnEndpointSliceDelete(endpointSlice) } }