-
Notifications
You must be signed in to change notification settings - Fork 1.1k
refactor(utils): remove unused code and re-organize some code structure #5223
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
refactor(utils): remove unused code and re-organize some code structure #5223
Conversation
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
- Move IgnoreAlreadyExists, IgnoreNotFound, and IgnoreNoKindMatchError functions from crtl_utils.go to errors.go Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
- Move GetEnvByKey function from common.go to os_env.go - Update related test cases from common_test.go to os_env_test.go Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5223 +/- ##
==========================================
- Coverage 55.57% 55.51% -0.06%
==========================================
Files 443 440 -3
Lines 30525 30449 -76
==========================================
- Hits 16963 16903 -60
+ Misses 12005 11993 -12
+ Partials 1557 1553 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cheyang
left a comment
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
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheyang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…re (fluid-cloudnative#5223) * Clean unused code Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> * Clean unused code in `ctrl_utils.go` Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> * refactor(utils): move error handling functions to errors.go - Move IgnoreAlreadyExists, IgnoreNotFound, and IgnoreNoKindMatchError functions from crtl_utils.go to errors.go Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> * refactor(utils): remove unused Fluid utility functions Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> * refactor(utils): move GetEnvByKey function to os_env.go - Move GetEnvByKey function from common.go to os_env.go - Update related test cases from common_test.go to os_env_test.go Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> * refactor(utils): move error handling tests to errors_test.go Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> --------- Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>



Ⅰ. Describe what this PR does
Ⅱ. Does this pull request fix one issue?
fixes #XXXX
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews