refactor: make fuse sidecar mutators function-level composable - #5293
Conversation
…on logic - Extract common mutation logic into mutatorHelper struct - Define helper functions for each step of the mutation process - Update DefaultMutator and UnprivilegedMutator to use the new mutatorHelper - Remove redundant code and simplify mutation logic Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
- Add informative error messages for each mutation step - Wrap original errors with context information (namespace and name) 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 #5293 +/- ##
==========================================
- Coverage 56.97% 56.96% -0.01%
==========================================
Files 441 442 +1
Lines 30512 30476 -36
==========================================
- Hits 17383 17361 -22
+ Misses 11514 11504 -10
+ Partials 1615 1611 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
[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 |



Ⅰ. Describe what this PR does
introduce mutatorHelper to organize PodSpec mutation logic
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. 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