-
-
Notifications
You must be signed in to change notification settings - Fork 732
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
fix: set container after modification #398
base: master
Are you sure you want to change the base?
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.