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

support vkctl job run --limits #181

Merged
merged 3 commits into from
May 18, 2019

Conversation

lminzhw
Copy link
Contributor

@lminzhw lminzhw commented May 17, 2019

Now, vkctl job run support argument --requests to set resource request for job to be created.

But, the resource limits could not set by vkctl. So, this PR support --limits to do this.

We don't need to validate limits with request, because the admission do this for us in validateTaskTemplate function from pkg/admission/admit_job.go.

@lminzhw
Copy link
Contributor Author

lminzhw commented May 17, 2019

It would be used like this:

vkctl job run --limits "cpu=1000m,memory=2Gi" --requests "cpu=1"

@k82cn
Copy link
Member

k82cn commented May 18, 2019

/lgtm
/approve

@volcano-sh-bot volcano-sh-bot added 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. labels May 18, 2019
@volcano-sh-bot volcano-sh-bot merged commit 5fc5713 into volcano-sh:master May 18, 2019
kevin-wangzefeng pushed a commit to kevin-wangzefeng/volcano that referenced this pull request Jun 28, 2019
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants