-
Notifications
You must be signed in to change notification settings - Fork 363
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
Add legacy networking API group for backward compatibility #1243
Conversation
Thanks for your PR. The following commands are available:
|
Codecov Report
@@ Coverage Diff @@
## master #1243 +/- ##
==========================================
+ Coverage 56.26% 56.28% +0.01%
==========================================
Files 109 109
Lines 12037 12045 +8
==========================================
+ Hits 6773 6779 +6
Misses 4674 4674
- Partials 590 592 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
58802ea
to
7e94f96
Compare
/test-all |
/test-windows-networkpolicy |
@jianjuns @antoninbas In addition to the basic compatibility test added in this PR, I have manually verified that 0.7.0 and 0.8.0 agent + this PR's controller can pass networkpolicy and conformance tests. I think ideally we should support backward compatibility for all clients including antctl but not sure if we want to make an exception for this particular renaming, do you want me to add the APIService back to support antctl of previous versions? We may document the compatibility of Antrea components whatever the decision is. |
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.
Overall changes LGTM. I assume that everything in the diff that's not related to testing is just you adding back code that was previously deleted?
I am in favor of adding back the APIService
to provide backwards-compatibility for antctl
as well, unless you see an issue with it.
Even though I'll include information in the release notes, we need to start a document with a list of our APIs and the deprecation status when applicable. It can be pretty basic for now and we can improve it over time. It doesn't have to be as part of this PR either.
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.
@antoninbas thanks for the input. I added the APIService back, will document the APIs in a separate PR.
There is a little difference in "pkg/apis/networking" and "apiserver.go" compared with previously deleted code. It's reusing the controlplane storages and structs instead of its owns. |
/test-all |
/test-e2e |
/test-conformance |
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.
couple nits, otherwise LGTM
/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
@jianjuns will you review this? if not I'd like to merge this soon as it's needed for upgrade tests of other api-change PRs. |
/test-windows-networkpolicy |
1 similar comment
/test-windows-networkpolicy |
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. Just a NIT.
Package networking is superseded by package controlplane in v0.9.3, to keep backward compatibility with up to two minor versions of antrea-agents, the API group should remain for two more minor releases. This patch adds the APIs back and serves them with the same storage as controlplane API. Also, kind tests are added to make sure basic functionalities are not broken when only controller is upgraded.
/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.
Approving again after typo fix
/test-windows-networkpolicy |
…#1243) Package networking is superseded by package controlplane in v0.9.3, to keep backward compatibility with up to two minor versions of antrea-agents, the API group should remain for two more minor releases. This patch adds the APIs back and serves them with the same storage as controlplane API. Also, kind tests are added to make sure basic functionalities are not broken when only controller is upgraded.
Package networking is superseded by package controlplane in v0.9.3, to keep backward compatibility with up to two minor versions of antrea-agents, the API group should remain for two more minor releases.
This patch adds the APIs back and serves them with the same storage as controlplane API. Also, kind tests are added to make sure basic functionalities are not broken when only controller is upgraded.
Fixes #1250