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
Remove Kind-specific manifest and scripts #3413
Remove Kind-specific manifest and scripts #3413
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3413 +/- ##
==========================================
- Coverage 63.53% 55.00% -8.54%
==========================================
Files 268 374 +106
Lines 26900 41447 +14547
==========================================
+ Hits 17091 22798 +5707
- Misses 7944 16253 +8309
- Partials 1865 2396 +531
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7aecad7
to
d97175c
Compare
|
This PR depends on #3421 to avoid some Egress e2e test failures. |
d97175c
to
ee83b82
Compare
|
@antoninbas I think it is safe to remove the wireguard related manifests by removing the provider check in |
| } | ||
| } | ||
| assert.Contains(t, endpoints, fmt.Sprintf("%s:%d", nodeIP, apis.WireGuardListenPort)) | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests can pass with the above changes. I can work on a follow-up PR to ensure the traffic went through the tunnel without using the wg command line.
ee83b82
to
c2a0dd6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glad to see if we clean up this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one minor comment
87aab4e
to
f82fef5
Compare
|
@tnqn thanks for the reviews. I just finished fixing all the tests, and I squashed my commits. |
|
@antoninbas I found two permanent failures:
The first one was caused by an implementation bug and it's great to see this PR increases the test coverage and exposes the bug. I have created #3430 to fix it. |
|
@tnqn Thanks, I'll rebase when your PR is merged. For IPsec I have decided to disable the test cases in Kind for now. There are a couple of reasons for that:
We may want to consider adding a new Kind CI job later on which will run just the IPsec tests. It will take care of both issues above. |
It seems that we no longer need to use the netdev datapath. In particular, the Linux VM used for Docker Desktop on macOS now includes the openvswitch and wireguard Kernel modules. As a consequence: * we remove the Kind-specific YAML manifest and the install_cni_kind script * we remove the kind-fix-networking.sh script * we give a warning to the user if they try to use the netdev datapath, since it is not fully supported and there are no good use cases anymore * we enable all tests (except for the IPsec tests) which were previously skipped on Kind (requires increasing the test timeout by 10 mins) * we no longer need support for wireguard-go (userspace implementation of WireGuard) * we remove the coreDNS hack in e2e framework introduced for netdev datapath Signed-off-by: Antonin Bas <abas@vmware.com>
f82fef5
to
4a4e079
Compare
|
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
/test-e2e |
|
/test-e2e |
74be804
to
54a7cb0
Compare
|
/test-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Signed-off-by: Antonin Bas <abas@vmware.com>
54a7cb0
to
9c56bc2
Compare
|
/test-all |
To avoid the following errors in the Agent logs: ``` E0311 22:19:33.901740 8 exporter.go:211] "Error when initializing flow exporter" err="cannot retrieve CA cert: error getting ConfigMap flow-aggregator-ca: configmaps \"flow-aggregator-ca\" is forbidden: User \"system:serviceaccount:kube-system:antrea-agent\" cannot get resource \"configmaps\" in API group \"\" in the namespace \"flow-aggregator\"" ``` Signed-off-by: Antonin Bas <abas@vmware.com>
|
/test-e2e |
|
/skip-networkpolicy |
Use OVS Kernel datapath for Kind clusters
It seems that we no longer need to use the netdev datapath. In
particular, the Linux VM used for Docker Desktop on macOS now includes
the openvswitch and wireguard Kernel modules.
As a consequence:
since it is not fully supported and there are no good use cases anymore
skipped on Kind (requires increasing the test timeout by 10 mins)
of WireGuard)
datapath