Skip to content

Conversation

@TrafalgarZZZ
Copy link
Member

Ⅰ. Describe what this PR does

introduce mutatorHelper to organize PodSpec mutation 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

Ⅱ. 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

…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>
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 74.19355% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.96%. Comparing base (6854011) to head (b3e1ade).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...application/inject/fuse/mutator/mutator_default.go 78.08% 9 Missing and 7 partials ⚠️
.../application/inject/fuse/mutator/mutator_helper.go 25.00% 10 Missing and 5 partials ⚠️
...cation/inject/fuse/mutator/mutator_unprivileged.go 96.77% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@fluid-e2e-bot
Copy link

fluid-e2e-bot bot commented Oct 22, 2025

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fluid-e2e-bot fluid-e2e-bot bot merged commit 9b73834 into fluid-cloudnative:master Oct 22, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants