-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Recreate container if container definition has changed and restart is true, simplify logic #820
base: main
Are you sure you want to change the base?
Recreate container if container definition has changed and restart is true, simplify logic #820
Conversation
… true Signed-off-by: Valentin Heidelberger <valh@mailbox.org>
…ner definition has not changed and restart is not true Signed-off-by: Valentin Heidelberger <valh@mailbox.org>
e9bda01
to
832661f
Compare
Sorry, I'm not sure how it solved this case. Can you please provide a simple playbook to illustrate this? |
Hi @sshnaidm sure here is a test process: Playbook
Test change to container with
Test change to container with
To summarize: After applying the patch in this PR you should instead see:
This PR allows users to keep This is also true if |
Thank you for that pull request @va1entin |
Hi @sshnaidm do you have any feedback on the changes? |
Hi team,
this PR is my proposal to fix #816. It changes
make_started
inpodman_container_lib.py
so that when a container definition has changed andrestart
/force_restart
areTrue
the container will be recreated and run to reflect the changes rather than restarted without reflecting any changes.I also removed a call to
container.restart
later in the same function because the case it covers is sufficiently handled above imho.Curious as to what you think! 😺 🙏