Skip to content

refactor: move stopContainer to containerutil#1897

Merged
AkihiroSuda merged 1 commit into
containerd:mainfrom
davidhsingyuchen:move-stopContainer
Jan 23, 2023
Merged

refactor: move stopContainer to containerutil#1897
AkihiroSuda merged 1 commit into
containerd:mainfrom
davidhsingyuchen:move-stopContainer

Conversation

@davidhsingyuchen
Copy link
Copy Markdown
Contributor

@davidhsingyuchen davidhsingyuchen commented Jan 21, 2023

PR is a blocker of #1896. Also removed Container from the function name due to the same rationale stated in the description of #1890.

Signed-off-by: Hsing-Yu (David) Chen davidhsingyuchen@gmail.com

@davidhsingyuchen davidhsingyuchen marked this pull request as ready for review January 21, 2023 02:30
return nil
}

func Stop(ctx context.Context, container containerd.Container, timeout *time.Duration) error {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you add some comments here, something like

// Stop stops `container` by sending SIGTERM. If the container is not stopped after `timeout`, it sends a SIGKILL.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point, thanks. Updated.

Copy link
Copy Markdown
Member

@djdongjin djdongjin left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@AkihiroSuda AkihiroSuda added this to the v1.2.0 milestone Jan 22, 2023
Copy link
Copy Markdown
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

@AkihiroSuda
Copy link
Copy Markdown
Member

Needs rebase

Signed-off-by: Hsing-Yu (David) Chen <davidhsingyuchen@gmail.com>
@AkihiroSuda AkihiroSuda merged commit f9c023c into containerd:main Jan 23, 2023
@davidhsingyuchen davidhsingyuchen deleted the move-stopContainer branch January 23, 2023 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants