-
Notifications
You must be signed in to change notification settings - Fork 963
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
enhancement vcctl features #3495
Comments
/assign |
@lowang-bh @hwdef @Monokaix /PTAL Please help identify whether we need this type of enhancement. thanks! |
I am ok. |
Okay, I will post a document describing the details in the next few days. |
Enhancement vcctl Proposal:Summary:The functionality of vcctl is currently limited. For example, it only supports job and queue operations. However, Volcano itself has other custom resource (CR) types, such as jobflow and jobtemplate, among others. MotivationTo enhance vcctl functionality Tasks
The following are the original functions root@VM-0-17-ubuntu:~# vcctl job list -h
list job information
Usage:
vcctl job list [flags]
Flags:
--all-namespaces list jobs in all namespaces
-h, --help help for list
-k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "/root/.kube/config")
-s, --master string the address of apiserver
-n, --namespace string the namespace of job (default "default")
-S, --scheduler string list job with specified scheduler name
--selector string fuzzy matching jobName
Global Flags:
--log-flush-frequency duration Maximum number of seconds between log flushes (default 5s)
-v, --v Level number for the log level verbosity
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging (only works for the default text log format)
root@VM-0-17-ubuntu:~# vcctl job get job-1
Name Creation Phase JobType Replicas Min Pending Running Succeeded Failed Unknown RetryCount
job-1 2024-05-27 Completed Batch 1 1 0 0 1 0 0 0
root@VM-0-17-ubuntu:~# vcctl queue describe deault
Name: default
Namespace:
Labels: <none>
Annotations: <none>
API Version: scheduling.volcano.sh/v1beta1
Kind: Queue
Metadata:
Creation Timestamp: 2024-05-26T14:27:56Z
Generation: 1
Resource Version: 350469
UID: 5ecfb13b-5597-4ec6-8811-d80256849884
...
root@VM-0-17-ubuntu:/home/ubuntu# vcctl pod get --for vcjobs/job-1
NAME READY STATUS RESTARTS AGE
test-a-default-nginx-0 0/1 Completed 0 23h
root@VM-0-17-ubuntu:/home/ubuntu# vcctl pod list --for vcjobs/test-a
NAME READY STATUS RESTARTS AGE
test-a-default-nginx-0 0/1 Completed 0 21h
test-a-default-nginx-1 0/1 Completed 0 21h |
So what's the difference between this and |
Yes, there is no difference in the current design, but I think that since vcctl features are already supported, these basic features should be included. Users should not have to switch back and forth between vcctl kubectl all the time. |
The PR #3494 has been merged, maybe we can submit features in batches. |
Yeah you can have a try. |
/reopen |
@googs1025: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
seems that you wanna use the first command |
Another question is that we should unify the format of commands and determine whether resources should be placed first or verbs first: )
|
@Monokaix |
If previous using method is resources first, we can keep this way to be consistent with old habit and user-side API: ) |
I agree that we need to maintain forward compatibility. But I think it feels better to use it in a way that is more similar to kubectl. @william-wang WDYT |
/reopen |
@googs1025: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@googs1025: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@googs1025: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Are all the tasks are done? If that's true, we can close it now. |
What would you like to be added:
create
delete
list
get
describe
vcctl job list
command by adding filtering options:Example usage:
vcctl list pod --for vcjobs/<job-name>
vcctl list job --for jobflow/<jobflow-name>
vcctl get pod --for vcjobs/job-1
vcctl describe pod --for vcjobs/job-1
Why is this needed:
enhancement vcctl features
TODO:
vcctl job list
feat: add vcctl job list queueName filter #3524Notes:
it is expected that work on this proposal will be carried out after this #3494 PR is merged. Split each todo work item and merge it using multiple PRs.
The text was updated successfully, but these errors were encountered: