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

[kueuectl] Add stop/resume workload commands #2134

Merged

Conversation

mbobrovskyi
Copy link
Contributor

@mbobrovskyi mbobrovskyi commented May 6, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it:

  • To puts the given Workload on hold using kueuectl.
  • To resumes the Workload using kueuectl.

Which issue(s) this PR fixes:

Fixes #2132 and #2133

Special notes for your reviewer:

Does this PR introduce a user-facing change?

CLI: Add stop/resume workload commands

@k8s-ci-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 6, 2024
@k8s-ci-robot k8s-ci-robot requested review from mimowo and trasc May 6, 2024 06:47
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label May 6, 2024
Copy link

netlify bot commented May 6, 2024

Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit 3b17bc4
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/663e5017306d4c00080e66e1
😎 Deploy Preview https://deploy-preview-2134--kubernetes-sigs-kueue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mbobrovskyi
Copy link
Contributor Author

/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label May 6, 2024
@mbobrovskyi
Copy link
Contributor Author

/cc @alculquicondor

@mbobrovskyi mbobrovskyi marked this pull request as ready for review May 6, 2024 07:05
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 6, 2024
@k8s-ci-robot k8s-ci-robot requested a review from denkensk May 6, 2024 07:05
@mbobrovskyi
Copy link
Contributor Author

/test pull-kueue-test-integration-main

@alculquicondor
Copy link
Contributor

/assign @mwielgus

@mbobrovskyi mbobrovskyi force-pushed the feature/kueuectl-stop-resume-workload branch 2 times, most recently from c95ab1e to 9cfe622 Compare May 6, 2024 19:10
@mbobrovskyi
Copy link
Contributor Author

/assign @trasc

Copy link
Contributor

@trasc trasc left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 8, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: ccdfda80562a74d75effec764cefe76ba53dcb20

@mbobrovskyi mbobrovskyi force-pushed the feature/kueuectl-stop-resume-workload branch from eb7e263 to 454841c Compare May 8, 2024 18:45
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 8, 2024
@k8s-ci-robot k8s-ci-robot requested a review from mwielgus May 8, 2024 18:45
@k8s-ci-robot k8s-ci-robot requested a review from trasc May 8, 2024 18:45
@alculquicondor
Copy link
Contributor

Anything to add @mwielgus ?


const (
resumeExample = ` # Resume the workload
kueuectl resume workload my-workload`
Copy link
Contributor

Choose a reason for hiding this comment

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

For a follow up, but it would be awesome to support any job object, and kueuectl automatically finds the workload for it.

cmd/kueuectl/app/resume/resume_workload.go Outdated Show resolved Hide resolved
cmd/kueuectl/app/options/update_workload_status_options.go Outdated Show resolved Hide resolved
cmd/kueuectl/app/options/update_workload_status_options.go Outdated Show resolved Hide resolved
cmd/kueuectl/app/options/update_workload_status_options.go Outdated Show resolved Hide resolved
site/content/en/docs/reference/kubectl-kueue.md Outdated Show resolved Hide resolved
| workload | wl | kueue.x-k8s.io/v1beta1 | true | Workload |


## Create
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't necessarily oppose all these details, but I think we can get away without them.

Using help in the CLI should be more than enough.

Copy link
Contributor Author

@mbobrovskyi mbobrovskyi May 8, 2024

Choose a reason for hiding this comment

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

@mwielgus, wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this will be hard to maintain. I prefer we don't add all this detail.

@mwielgus, wdyt?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not add everything for now.

let's maybe stop at a 2 level hierarchy:

kubectl-kueue
  index
  installation
  commands
    create
    resume
    stop

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on splitting this

weight: 10
description: >
The kubectl-kueue plugin, kueuectl, allows you to manage Kueue resources.
---
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this have the contents that are currently on kubectl-kueue.md?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@mbobrovskyi
Copy link
Contributor Author

/test pull-kueue-test-integration-main

@mbobrovskyi mbobrovskyi force-pushed the feature/kueuectl-stop-resume-workload branch from bba0c3e to b88c020 Compare May 9, 2024 07:53
@mbobrovskyi mbobrovskyi force-pushed the feature/kueuectl-stop-resume-workload branch from 294ac31 to d76614d Compare May 9, 2024 15:43
Copy link
Contributor

@trasc trasc left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 9, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: f4978c87454e8c703646e771ad0ea525bae9dbe2

@mbobrovskyi
Copy link
Contributor Author

/assign @alculquicondor

Copy link
Contributor

Choose a reason for hiding this comment

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

site/content/en/docs/reference/kubectl-kueue/commands/create/_index.md

to avoid stutter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mbobrovskyi mbobrovskyi force-pushed the feature/kueuectl-stop-resume-workload branch from d76614d to e946f9a Compare May 10, 2024 16:12
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like you forgot to change the folder name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops. Fixed.

@mbobrovskyi mbobrovskyi force-pushed the feature/kueuectl-stop-resume-workload branch from e946f9a to 3b17bc4 Compare May 10, 2024 16:49
@alculquicondor
Copy link
Contributor

/lgtm
/approve
Thanks!

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 820076759cdc9efdf7fab22de51cfb06ff25238b

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alculquicondor, mbobrovskyi

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 10, 2024
@k8s-ci-robot k8s-ci-robot merged commit c55f10c into kubernetes-sigs:main May 10, 2024
15 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.7 milestone May 10, 2024
@mbobrovskyi mbobrovskyi deleted the feature/kueuectl-stop-resume-workload branch May 10, 2024 17:19
@alculquicondor
Copy link
Contributor

/release-note-edit

CLI: Add stop/resume workload commands

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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[kueuectl] Add stop Workload command
5 participants