Closed rambohe-ch closed 6 months ago
Issues
0 New issues
Measures
0 Security Hotspots
No data about Coverage
0.1% Duplication on New Code
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
3e5d8fc
) 52.04% compared to head (3de0034
) 52.34%. Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
/backport release-v1.4
Successfully created backport PR for release-v1.4
:
What type of PR is this?
/kind bug
What this PR does / why we need it:
background:
yurt-hub-cfg configmap is used in multiple places, like:
In the cache manager, configmap is read, but in the approver, configmap is modified, so a panic maybe triggered.
solution:
deepcopy configmap before modify to avoid panic.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
other Note