Skip to content

Commit

Permalink
[Windows] Enable endpointslices support on antrea windows
Browse files Browse the repository at this point in the history
* Enable endpointslices feature in antrea-windows.yml
* Make some endpointslices logs more accurate

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
  • Loading branch information
XinShuYang committed Feb 18, 2022
1 parent 15de4cf commit 147b747
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build/yamls/antrea-windows.yml
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions third_party/proxy/config/config.go
Expand Up @@ -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)
}
}
Expand All @@ -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)
}
}

0 comments on commit 147b747

Please sign in to comment.