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

License format and package version updates #3919

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

luolanzone
Copy link
Contributor

@luolanzone luolanzone commented Jun 21, 2022

  1. Update the license format in auto-generated deepcopy file and let it be updated by make codegen
  2. Update controller-runtime version to v0.12.1
  3. Update controller-gen version to v0.9.0
  4. Update codegen image to kubernetes-1.24.0-build.0

Signed-off-by: Lan Luo luola@vmware.com

@luolanzone luolanzone added the area/multi-cluster Issues or PRs related to multi cluster. label Jun 21, 2022
@luolanzone
Copy link
Contributor Author

/test-multicluster-dataplane-e2e

@codecov-commenter
Copy link

codecov-commenter commented Jun 21, 2022

Codecov Report

Merging #3919 (2965304) into main (c6fae02) will decrease coverage by 10.88%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #3919       +/-   ##
===========================================
- Coverage   64.24%   53.36%   -10.89%     
===========================================
  Files         293      415      +122     
  Lines       43227    60353    +17126     
===========================================
+ Hits        27772    32208     +4436     
- Misses      13232    25508    +12276     
- Partials     2223     2637      +414     
Flag Coverage Δ
integration-tests 35.15% <ø> (?)
kind-e2e-tests 44.32% <ø> (-6.42%) ⬇️
unit-tests 44.55% <ø> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
...g/agent/apiserver/handlers/featuregates/handler.go 4.54% <0.00%> (-77.28%) ⬇️
pkg/apis/controlplane/v1beta2/helper.go 40.00% <0.00%> (-60.00%) ⬇️
pkg/controller/egress/store/egressgroup.go 1.72% <0.00%> (-54.32%) ⬇️
...kg/apiserver/registry/system/supportbundle/rest.go 22.17% <0.00%> (-50.44%) ⬇️
pkg/support/dump.go 7.90% <0.00%> (-49.16%) ⬇️
pkg/support/dump_others.go 0.00% <0.00%> (-44.74%) ⬇️
pkg/agent/controller/networkpolicy/fqdn.go 39.51% <0.00%> (-38.59%) ⬇️
...g/agent/apiserver/handlers/addressgroup/handler.go 5.00% <0.00%> (-35.00%) ⬇️
...agent/apiserver/handlers/appliedtogroup/handler.go 5.00% <0.00%> (-35.00%) ⬇️
pkg/agent/controller/networkpolicy/reject.go 50.58% <0.00%> (-34.71%) ⬇️
... and 175 more

jianjuns
jianjuns previously approved these changes Jun 21, 2022
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

In your commit message, I do not understand what you mean by "refine
related logic as others".

Also, "Let it to be updated by make codegen" should be "Let it be updated by make codegen"

@@ -82,7 +83,7 @@ else
endif
##@ Build

build: generate fmt vet ## Build manager binary.
Copy link
Contributor

Choose a reason for hiding this comment

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

is that change intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it's unnecessary to rerun this every time to build a binary in most cases. We should run make codegen to update related codes if it's necessary or run make generate If it's required to update deep copy file only.

@@ -60,5 +59,8 @@ $GOPATH/bin/informer-gen \
--output-package "${ANTREA_PKG}/multicluster/pkg/client/informers" \
--go-header-file hack/boilerplate.go.txt

go get sigs.k8s.io/controller-tools/cmd/controller-gen@v0.4.1
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be added to the Docker image instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I think we can, let me refine this, thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@luolanzone
Copy link
Contributor Author

/test-multicluster-dataplane-e2e

@antoninbas
Copy link
Contributor

@luolanzone I have built and pushed antrea/codegen:kubernetes-1.24.0-build.0 for you (given that you have changed the Dockerfile). Could you update build/images/codegen/README.md and hack/update-codegen.sh appropriately?

1. Update the license format in auto-generated deepcopy file
   and let it be updated by `make codegen`
2. Update controller-runtime version to v0.12.1
3. Update controller-gen version to v0.9.0
4. Update codegen image to kubernetes-1.24.0-build.0

Signed-off-by: Lan Luo <luola@vmware.com>
@luolanzone
Copy link
Contributor Author

@antoninbas I have updated corresponding files and commit/PR messages, Could you help to take a look? thanks.

@luolanzone
Copy link
Contributor Author

/test-multicluster-e2e

Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

LGTM

@jianjuns
Copy link
Contributor

/skip-all
The change impacts only MC controller.

@jianjuns jianjuns merged commit e73b609 into antrea-io:main Jun 23, 2022
@luolanzone luolanzone deleted the mc-trivial branch June 24, 2022 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/multi-cluster Issues or PRs related to multi cluster.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants