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

Automated cherry pick of #4154: Fix nil error issue #4173

Conversation

luolanzone
Copy link
Contributor

Cherry pick of #4154 on release-1.8.

#4154: Fix nil error issue

For details on the cherry pick process, see the cherry pick requests page.

admission.Errored doesn't handle nil error case, it will raise a nil
pointer error when there is no ClusterSet found.
Fix it with a new error with error message.
Refactor unit test and add a few more test cases.

Signed-off-by: Lan Luo <[email protected]>
@luolanzone luolanzone added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label Aug 30, 2022
@luolanzone
Copy link
Contributor Author

/test-multicluster-e2e

@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Merging #4173 (56a5da6) into release-1.8 (04d18cd) will increase coverage by 0.58%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           release-1.8    #4173      +/-   ##
===============================================
+ Coverage        65.95%   66.54%   +0.58%     
===============================================
  Files              304      315      +11     
  Lines            46593    46638      +45     
===============================================
+ Hits             30732    31033     +301     
+ Misses           13451    13184     -267     
- Partials          2410     2421      +11     
Flag Coverage Δ
e2e-tests 58.35% <100.00%> (?)
integration-tests 35.03% <ø> (+0.04%) ⬆️
kind-e2e-tests 48.66% <ø> (-0.08%) ⬇️
unit-tests 44.75% <100.00%> (+0.04%) ⬆️
Impacted Files Coverage Δ
...luster-controller/memberclusterannounce_webhook.go 73.33% <100.00%> (+18.33%) ⬆️
...agent/apiserver/handlers/appliedtogroup/handler.go 5.00% <0.00%> (-35.00%) ⬇️
pkg/agent/cniserver/ipam/antrea_ipam.go 52.81% <0.00%> (-21.22%) ⬇️
pkg/ipfix/ipfix_process.go 81.25% <0.00%> (-18.75%) ⬇️
pkg/agent/cniserver/ipam/ipam_service.go 51.68% <0.00%> (-12.36%) ⬇️
pkg/ovs/ovsctl/ofctl.go 46.57% <0.00%> (-5.48%) ⬇️
pkg/controller/networkpolicy/status_controller.go 68.56% <0.00%> (-3.79%) ⬇️
pkg/agent/cniserver/server.go 73.94% <0.00%> (-3.41%) ⬇️
pkg/ovs/openflow/ofctrl_packetin.go 63.33% <0.00%> (-3.34%) ⬇️
pkg/agent/controller/networkpolicy/reject.go 77.50% <0.00%> (-3.00%) ⬇️
... and 49 more

@tnqn
Copy link
Member

tnqn commented Aug 30, 2022

/skip-all

@tnqn tnqn merged commit 33e1b53 into antrea-io:release-1.8 Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants