Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix nerdctl update --restart to make it work correctly #2314

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

yankay
Copy link
Contributor

@yankay yankay commented Jun 21, 2023

The PR is to fix the #2310

With the PR, the restart.WithStatus has been added to the labels, so it can restart correctly.

@yankay yankay force-pushed the fix_update_restart_policy branch from f8339fa to a8e34b6 Compare June 21, 2023 08:14
@AkihiroSuda AkihiroSuda added this to the v1.5.0 milestone Jun 21, 2023
@yankay yankay force-pushed the fix_update_restart_policy branch 4 times, most recently from fe7ffa8 to 9b97d5a Compare June 21, 2023 13:18
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@@ -154,3 +155,28 @@ func TestUpdateRestartPolicy(t *testing.T) {
inspect := base.InspectContainer(tID)
assert.Equal(t, inspect.RestartCount, 2)
}

func TestUpdateRestartPolicyOnRunned(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • In comment lines please explain how this is different from TestUpdateRestartPolicy
  • "Runned" doesn't seem grammatically correct

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @AkihiroSuda for the PR review.

It function name has been changed , and add some comments

@yankay yankay force-pushed the fix_update_restart_policy branch 5 times, most recently from 3f7c634 to 9b166c6 Compare June 22, 2023 06:45
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
@yankay yankay force-pushed the fix_update_restart_policy branch from 9b166c6 to 3a4938b Compare June 23, 2023 04:09
@AkihiroSuda AkihiroSuda merged commit 0884088 into containerd:main Jun 23, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants