Skip to content
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

reset spec if update returned error #3818

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zzzzzzzzzy9
Copy link

reset spec if update returned error

@zzzzzzzzzy9
Copy link
Author

@AkihiroSuda could you please review this pr? thanks.

@AkihiroSuda
Copy link
Member

How to test this?

@zzzzzzzzzy9
Copy link
Author

zzzzzzzzzy9 commented Jan 15, 2025

1、update memory and gave a wrong args to restart.

nerdctl -n k8s.io update --memory=450000000 --restart=123 ef66

2、This will got an error like this:

FATA[0000] 1 errors:
unsupported restart policy "123", supported policies are: ["no" "always" "on-failure" "unless-stopped"]

3、

nerdctl -n k8s.io inspect --mode=native <Container ID>

inspect we can see the memory is 450000000 now. In fact, the memory is not being updated.

@AkihiroSuda
Copy link
Member

Can we have an integration test?

@zzzzzzzzzy9
Copy link
Author

Ok, I will do it.

@zzzzzzzzzy9 zzzzzzzzzy9 force-pushed the update branch 2 times, most recently from dee98b2 to a99bdc0 Compare January 15, 2025 07:52
@zzzzzzzzzy9
Copy link
Author

Done. @AkihiroSuda

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants