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

feature: add restart skeleton #890

Merged
merged 1 commit into from
Mar 16, 2018

Conversation

Letty5411
Copy link
Contributor

Signed-off-by: letty [email protected]

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how you did it

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@HusterWan
Copy link
Contributor

conflicted, please rebase you code ,thanks :) @Letty5411

cli/restart.go Outdated
}

// runrestart is the entry of restart command.
func (rc *RestartCommand) runrestart(args []string) error {
Copy link
Contributor

Choose a reason for hiding this comment

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

s/runrestart/runRestart

cli/restart.go Outdated
// restartCommand uses to implement 'restart' command, it restarts a container.
type RestartCommand struct {
baseCommand
time int
Copy link
Contributor

Choose a reason for hiding this comment

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

s/time/timeout will be more reasonable, WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok~

@HusterWan
Copy link
Contributor

@Letty5411 Maybe we also need add a skeleton of ci test, WDYT?

cli/restart.go Outdated
// restartDescription is used to describe restart command in detail and auto generate command doc.
var restartDescription = "restart one or more containers"

// restartCommand uses to implement 'restart' command, it restarts a container.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/restartCommand/RestartCommand
BTW, as your restartDescription says restart one or more containers, so this comment should change

@pouchrobot
Copy link
Collaborator

ping @Letty5411

CI fails according integration system.
Please refer to the CI failure Details button to corresponding test, and update your PR to pass CI.

If this is flaky test, welcome to track this with profiling an issue.

build url: https://travis-ci.org/alibaba/pouch/builds/354139016
build duration: 1087s

@Letty5411 Letty5411 changed the title [WIP] feature: add restart skeleton feature: add restart skeleton Mar 16, 2018
@HusterWan
Copy link
Contributor

LGTM

@HusterWan
Copy link
Contributor

This PR is not the reason CI failed, so I will merge this PR

@HusterWan HusterWan merged commit e6d20ed into AliyunContainerService:master Mar 16, 2018
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