Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Enable EndpointSlices support on Antrea windows #3321

Merged
merged 1 commit into from Feb 28, 2022

Conversation

XinShuYang
Copy link
Contributor

Signed-off-by: Shuyang Xin gavinx@vmware.com

@XinShuYang
Copy link
Contributor Author

/test-windows-all

@codecov-commenter
Copy link

codecov-commenter commented Feb 16, 2022

Codecov Report

Merging #3321 (02c421b) into main (15de4cf) will increase coverage by 0.09%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3321      +/-   ##
==========================================
+ Coverage   60.95%   61.05%   +0.09%     
==========================================
  Files         266      266              
  Lines       26508    26520      +12     
==========================================
+ Hits        16159    16191      +32     
+ Misses       8597     8542      -55     
- Partials     1752     1787      +35     
Flag Coverage Δ
kind-e2e-tests 48.17% <ø> (+0.34%) ⬆️
unit-tests 41.61% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/agent/util/net.go 25.33% <0.00%> (-22.00%) ⬇️
pkg/agent/route/route_linux.go 27.46% <0.00%> (-19.46%) ⬇️
pkg/apiserver/handlers/endpoint/handler.go 58.82% <0.00%> (-11.77%) ⬇️
pkg/agent/util/ipset/ipset.go 61.53% <0.00%> (-7.70%) ⬇️
pkg/agent/openflow/pipeline.go 67.62% <0.00%> (-6.77%) ⬇️
pkg/agent/nodeportlocal/k8s/annotations.go 93.54% <0.00%> (-6.46%) ⬇️
pkg/monitor/agent.go 67.56% <0.00%> (-5.41%) ⬇️
pkg/util/k8s/client.go 39.02% <0.00%> (-4.88%) ⬇️
pkg/controller/networkpolicy/status_controller.go 65.89% <0.00%> (-3.47%) ⬇️
pkg/agent/proxy/proxier.go 60.44% <0.00%> (-2.71%) ⬇️
... and 38 more

@XinShuYang
Copy link
Contributor Author

/test-windows-networkpolicy

@XinShuYang XinShuYang changed the title [Not4REVIEW] Enable endpointslice support on antrea windows [Windows] Enable endpointslices support on antrea windows Feb 18, 2022
@XinShuYang
Copy link
Contributor Author

/test-windows-proxyall-e2e

@XinShuYang XinShuYang changed the title [Windows] Enable endpointslices support on antrea windows [Windows] Enable EndpointSlices support on antrea windows Feb 20, 2022
@XinShuYang XinShuYang changed the title [Windows] Enable EndpointSlices support on antrea windows [Windows] Enable EndpointSlices support on Antrea windows Feb 20, 2022
@XinShuYang
Copy link
Contributor Author

/test-windows-proxyall-e2e

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use klog.V(4).InfoS()?
One log including both old and new Endpointslice is enought.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thanks!

@XinShuYang
Copy link
Contributor Author

/test-windows-all

@XinShuYang
Copy link
Contributor Author

@wenyingd Hi Wenying,do you have more comments on this PR?

wenyingd
wenyingd previously approved these changes Feb 25, 2022
Copy link
Contributor

@wenyingd wenyingd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -330,7 +330,7 @@ func (c *EndpointSliceConfig) handleAddEndpointSlice(obj interface{}) {
return
}
for _, h := range c.eventHandlers {
klog.V(4).Infof("Calling handler.OnEndpointSliceAdd %+v", endpointSlice)
klog.V(4).InfoS("Calling handler.OnEndpointSliceAdd", endpointSlice)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

structured logging must have pairs of key and value, otherwise the log wouldn't be formated properly.

InfoS("log body", "key1", value1, "key2", values)

It should be klog.V(4).InfoS("Calling handler.OnEndpointSliceAdd", "endpointSlice", endpointSlice)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thanks @tnqn.

* Enable endpointslices feature in antrea-windows.yml
* Make some endpointslices logs more accurate

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tnqn
Copy link
Member

tnqn commented Feb 28, 2022

/test-windows-all
/skip-networkpolicy
/skip-e2e
/skip-conformance

@tnqn tnqn merged commit 0d048e7 into antrea-io:main Feb 28, 2022
@tnqn tnqn added the action/release-note Indicates a PR that should be included in release notes. label Feb 28, 2022
bangqipropel pushed a commit to bangqipropel/antrea that referenced this pull request Mar 2, 2022
…3321)

* Enable endpointslices feature in antrea-windows.yml
* Make some endpointslices logs more accurate

Signed-off-by: Shuyang Xin <gavinx@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants