fix: set container after modification#398
fix: set container after modification#398fengxsong wants to merge 1 commit intoslimtoolkit:masterfrom
Conversation
Signed-off-by: fengxsong <fengxsong@outlook.com>
👇 Click on the image for a new way to code review
Legend |
|
@iximiuz can you take a look at this enhancement |
|
I'll need to run this code, but at first sight, this change is not needed (since the modified container is a pointer and we were modifying it in place). |
I've check line https://github.com/docker-slim/docker-slim/blob/master/pkg/app/master/kubernetes/workload.go#L67, maybe not this reason. It's odd. LoL |
|
@fengxsong easily can be! :) That's why I said I'll have to run this code before actually deciding on the action. And in any case, thanks a lot for your contribution! |
|
@fengxsong you are totally right, Here is what I tried to validate this reasoning (yep, I should have written a proper test, but there is no time for that at the moment, unfortunately): And here is what I got: In other words, the template after the modification has the changes (look for |
|
@iximiuz Hi there, from what I observed, the template doesn't have that change. here's my test case |
|
@CodiumAI-Agent /review |
PR Analysis
PR Feedback
How to use
|
|
@CodiumAI-Agent /describe |


Signed-off-by: fengxsong fengxsong@outlook.com
Should set container after modification, otherwise it won't be affected.