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

[operator] fix error kind of ownerreference #540

Merged

Conversation

wangao1236
Copy link
Collaborator

@wangao1236 wangao1236 commented Feb 2, 2023

What changes were proposed in this pull request?

Fix #529

Why are the changes needed?

This fix #529.
After this fix, garbage collection in k8s cluster can be completed normally.

Does this PR introduce any user-facing change?

This is a bug fix, after this pr. Child resource created by rss could be gced automatically.

How was this patch tested?

After the rss object is deleted, see if the rss-dependent objects (such as services and statefulsets) are cleaned up with it to verify that the function is normal.

@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2023

Codecov Report

Merging #540 (0f5db17) into master (0d24c26) will increase coverage by 0.07%.
The diff coverage is 87.50%.

@@             Coverage Diff              @@
##             master     #540      +/-   ##
============================================
+ Coverage     59.20%   59.28%   +0.07%     
+ Complexity     1786     1785       -1     
============================================
  Files           213      213              
  Lines         12358    12357       -1     
  Branches       1042     1042              
============================================
+ Hits           7317     7326       +9     
+ Misses         4635     4624      -11     
- Partials        406      407       +1     
Impacted Files Coverage Δ
...bernetes/operator/pkg/controller/controller/rss.go 33.22% <0.00%> (ø)
...oy/kubernetes/operator/pkg/controller/util/util.go 40.49% <100.00%> (+7.77%) ⬆️
...y/kubernetes/operator/pkg/webhook/inspector/rss.go 47.70% <100.00%> (ø)
...he/uniffle/server/storage/LocalStorageManager.java 85.87% <0.00%> (-1.13%) ⬇️
...pache/uniffle/server/ShuffleServerGrpcMetrics.java 100.00% <0.00%> (ø)
...fle/coordinator/metric/CoordinatorGrpcMetrics.java 100.00% <0.00%> (ø)
...org/apache/uniffle/common/metrics/GRPCMetrics.java 47.88% <0.00%> (+1.51%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@advancedxy
Copy link
Contributor

Hi @wangao1236 ao, could you help also edit the PR summary here to fill the contents:?

Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

@wangao1236
Copy link
Collaborator Author

Hi @wangao1236 ao, could you help also edit the PR summary here to fill the contents:?

Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

Ok, I'll do it.

@wangao1236 wangao1236 force-pushed the fix-error-kind-in-ownerreferences branch from 0f5db17 to 3156312 Compare February 2, 2023 10:45
Copy link
Contributor

@advancedxy advancedxy left a comment

Choose a reason for hiding this comment

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

LGTM, pending CI passes.

@advancedxy
Copy link
Contributor

Thanks @wangao1236, merging this.

@advancedxy advancedxy merged commit e1a1567 into apache:master Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [operator] dependent object could not be gced when rss object is deleted
3 participants