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

Remove all legacy (*.antrea.tanzu.vmware.com) APIs #3299

Merged
merged 2 commits into from
Feb 15, 2022

Conversation

antoninbas
Copy link
Contributor

These APIs were scheduled for deletion in December 2021. So it seems
reasonable to remove them in Antrea v1.6, without causing significant
disruption to users.

As part of this, the CRD mirroring controller code can be removed
entirely and the legacyCRDMirroring config option for the controller is
deprecated (it's a no-op and users trying to set this option to anything
will see a warning in the logs).

The API dcoumentation is updated. We add a note to inform users who may
still be using Antrea pre-v1.0 that they will need to make an
intermediate upgrade first and migrate their CRDs, if they want to
upgrade to Antrea >= v1.6.

Fixes #3298

Signed-off-by: Antonin Bas [email protected]

@antoninbas antoninbas added this to the Antrea v1.6 release milestone Feb 9, 2022
@antoninbas antoninbas added api-review Categorizes an issue or PR as actively needing an API review. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API. kind/task Categorizes issue or PR as related to a routine task that needs to be performed labels Feb 9, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2022

Codecov Report

Merging #3299 (3aea040) into main (7eec130) will decrease coverage by 4.18%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3299      +/-   ##
==========================================
- Coverage   58.97%   54.79%   -4.19%     
==========================================
  Files         331      371      +40     
  Lines       28420    50756   +22336     
==========================================
+ Hits        16762    27810   +11048     
- Misses       9843    20543   +10700     
- Partials     1815     2403     +588     
Flag Coverage Δ
e2e-tests 53.01% <100.00%> (?)
integration-tests 36.26% <ø> (?)
kind-e2e-tests 49.34% <100.00%> (+3.05%) ⬆️
unit-tests 41.61% <ø> (-0.18%) ⬇️

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

Impacted Files Coverage Δ
pkg/monitor/agent.go 70.58% <ø> (+37.25%) ⬆️
pkg/monitor/controller.go 56.12% <ø> (+27.01%) ⬆️
pkg/util/k8s/client.go 39.28% <ø> (-4.47%) ⬇️
pkg/apiserver/apiserver.go 87.15% <100.00%> (-2.40%) ⬇️
pkg/agent/cniserver/pod_configuration_linux.go 26.31% <0.00%> (-40.36%) ⬇️
pkg/controller/ipam/antrea_ipam_controller.go 48.71% <0.00%> (-31.57%) ⬇️
pkg/controller/networkpolicy/endpoint_querier.go 61.46% <0.00%> (-29.97%) ⬇️
pkg/controller/egress/controller.go 61.11% <0.00%> (-26.33%) ⬇️
.../registry/networkpolicy/clustergroupmember/rest.go 64.28% <0.00%> (-23.95%) ⬇️
pkg/agent/cniserver/ipam/antrea_ipam.go 55.55% <0.00%> (-23.62%) ⬇️
... and 337 more

Copy link
Contributor

@jianjuns jianjuns left a comment

Choose a reason for hiding this comment

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

Glad to see we remove these! But assume we will need the mirror code back later.

build/yamls/base/controller-rbac.yml Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
@tnqn tnqn added the action/release-note Indicates a PR that should be included in release notes. label Feb 10, 2022
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, one minor comment.

Feel much cleaner now. There were 18% (135) files were related to legacy API.

build/yamls/base/controller-rbac.yml Show resolved Hide resolved
cmd/antrea-controller/options.go Outdated Show resolved Hide resolved
@tnqn
Copy link
Member

tnqn commented Feb 10, 2022

/test-all

@antoninbas
Copy link
Contributor Author

Glad to see we remove these! But assume we will need the mirror code back later.

Hopefully not. This was required because of the API naming change. CRD version changes don't require our own mirroring logic as K8s provides the machinery for version conversion.

These APIs were scheduled for deletion in December 2021. So it seems
reasonable to remove them in Antrea v1.6, without causing significant
disruption to users.

As part of this, the CRD mirroring controller code can be removed
entirely and the legacyCRDMirroring config option for the controller is
deprecated (it's a no-op and users trying to set this option to anything
will see a warning in the logs).

The API dcoumentation is updated. We add a note to inform users who may
still be using Antrea pre-v1.0 that they will need to make an
intermediate upgrade first and migrate their CRDs, if they want to
upgrade to Antrea >= v1.6.

Fixes antrea-io#3298

Signed-off-by: Antonin Bas <[email protected]>
Signed-off-by: Antonin Bas <[email protected]>
@antoninbas
Copy link
Contributor Author

/test-all

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

@antoninbas
Copy link
Contributor Author

/test-e2e

@antoninbas antoninbas merged commit c3621fb into antrea-io:main Feb 15, 2022
@antoninbas antoninbas deleted the remove-legacy-apis branch February 15, 2022 05:35
bangqipropel pushed a commit to bangqipropel/antrea that referenced this pull request Mar 2, 2022
These APIs were scheduled for deletion in December 2021. So it seems
reasonable to remove them in Antrea v1.6, without causing significant
disruption to users.

As part of this, the CRD mirroring controller code can be removed
entirely and the legacyCRDMirroring config option for the controller is
deprecated (it's a no-op and users trying to set this option to anything
will see a warning in the logs).

The API documentation is updated. We add a note to inform users who may
still be using Antrea pre-v1.0 that they will need to make an
intermediate upgrade first and migrate their CRDs, if they want to
upgrade to Antrea >= v1.6.

Fixes antrea-io#3298

Signed-off-by: Antonin Bas <[email protected]>
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. api-review Categorizes an issue or PR as actively needing an API review. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API. kind/task Categorizes issue or PR as related to a routine task that needs to be performed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove legacy Antrea APIs (*.antrea.tanzu.vmware.com) in v1.6
5 participants