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

Add vcommands: vcancel, vsuspend, vresume. #656

Merged
merged 2 commits into from
Jan 6, 2020
Merged

Add vcommands: vcancel, vsuspend, vresume. #656

merged 2 commits into from
Jan 6, 2020

Conversation

jiangkaihua
Copy link
Contributor

No description provided.

@volcano-sh-bot volcano-sh-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 2, 2020
rootCmd := cobra.Command{
Use: "vcancel",
Short: "cancel a job",
Long: `command 'vcancel' has the same function as command "vcctl job delete"`,
Copy link
Member

Choose a reason for hiding this comment

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

it's not necessary to mention vcctl as we're going to remove that.

}
}

func checkError(cmd *cobra.Command, err error) {
Copy link
Member

Choose a reason for hiding this comment

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

move this func into util.go.

@k82cn
Copy link
Member

k82cn commented Jan 2, 2020

/approve

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 2, 2020
@TravisBuddy
Copy link

Hey @jiangkaihua,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 767d9210-2d3c-11ea-a185-6fb6d15019ed

Makefile Outdated
@@ -92,3 +92,7 @@ verify:
verify-generated-yaml:
./hack/check-generated-yaml.sh

vcommands:
Copy link
Member

Choose a reason for hiding this comment

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

s/vcommands/command-lines/g

@TravisBuddy
Copy link

Travis tests have failed

Hey @jiangkaihua,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: 1a43cb70-2e0b-11ea-8eaa-0b08c4ee3d08

@@ -149,3 +151,17 @@ func HumanDuration(d time.Duration) string {
}
return fmt.Sprintf("%dy", int(hours/24/365))
}

func CheckError(cmd *cobra.Command, err error) {
Copy link
Member

Choose a reason for hiding this comment

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

move this into util.go in cmd directory.

@TravisBuddy
Copy link

Travis tests have failed

Hey @jiangkaihua,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: fb0dbc70-2e0f-11ea-8eaa-0b08c4ee3d08

Signed-off-by: jiangkaihua <54176503+jiangkaihua@users.noreply.github.com>
@TravisBuddy
Copy link

Hey @jiangkaihua,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

TravisBuddy Request Identifier: 07f5a5d0-2e1d-11ea-8eaa-0b08c4ee3d08

@TravisBuddy
Copy link

Hey @jiangkaihua,
Your changes look good to me!

View build log

TravisBuddy Request Identifier: 494b1e60-3053-11ea-9f42-315217d475c1

@k82cn
Copy link
Member

k82cn commented Jan 6, 2020

/lgtm
/approve

@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 6, 2020
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jiangkaihua, k82cn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants