kueue icon indicating copy to clipboard operation
kueue copied to clipboard

support running workloads in visibility endpoint

Open KunWuLuan opened this issue 1 year ago • 12 comments

What type of PR is this?

/kind feature

What this PR does / why we need it:

support running workloads in visibility endpoint

Which issue(s) this PR fixes:

Fixes #1776

Special notes for your reviewer:

Does this PR introduce a user-facing change?

We will add a new visibility endpoint in Kueue. Users can list the running workloads by using 
'kubectl get --raw "/apis/visibility.kueue.x-k8s.io/v1alpha1/clusterqueues/cluster-queue/runningworkloads"' 
and 
'kubectl get --raw "/apis/visibility.kueue.x-k8s.io/v1alpha1/namespaces/default/localqueues/user-queue/runningworkloads"'

KunWuLuan avatar May 07 '24 02:05 KunWuLuan

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: KunWuLuan Once this PR has been reviewed and has the lgtm label, please assign alculquicondor for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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 avatar May 07 '24 02:05 k8s-ci-robot

Hi @KunWuLuan. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

k8s-ci-robot avatar May 07 '24 02:05 k8s-ci-robot

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
Latest commit 8d7f709225bb828c38758a22ccf892f304b1bd0c
Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/664c95d26939a50008f1a91a

netlify[bot] avatar May 07 '24 02:05 netlify[bot]

/ok-to-test

mimowo avatar May 07 '24 06:05 mimowo

/cc @PBundyra

mimowo avatar May 07 '24 15:05 mimowo

do we need to query running workloads for local queues?

KunWuLuan avatar May 08 '24 01:05 KunWuLuan

do we need to query running workloads for local queues?

I am leaning towards implementing that. It will be useful for the KueueCtl. It might be a separate PR though @alculquicondor @mwielgus WDYT?

PBundyra avatar May 08 '24 10:05 PBundyra

do we need to query running workloads for local queues?

I am leaning towards implementing that. It will be useful for the KueueCtl. It might be a separate PR though

Yes, a separate PR would be better.

alculquicondor avatar May 08 '24 17:05 alculquicondor

Thank you for addressing my comments. Please add missing test scenarios.

PBundyra avatar May 15 '24 11:05 PBundyra

@PBundyra Hi, I think all questions have been addressed. Please have a look if you have time. Thanks very much.

KunWuLuan avatar May 22 '24 03:05 KunWuLuan

@PBundyra Hi, I think all questions have been addressed. Please have a look if you have time. Thanks very much.

Thank you for addressing my comments. Please add e2e/integration tests as I've mentioned above. You can extend existing e2e tests.

Another thing we're missing here are RBAC roles. See this file for the reference.

Thank you

PBundyra avatar May 22 '24 09:05 PBundyra

PR needs rebase.

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-sigs/prow repository.

k8s-ci-robot avatar Jun 22 '24 04:06 k8s-ci-robot

@KunWuLuan: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-kueue-test-e2e-main-1-31 8d7f709225bb828c38758a22ccf892f304b1bd0c link true /test pull-kueue-test-e2e-main-1-31

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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-sigs/prow repository. I understand the commands that are listed here.

k8s-ci-robot avatar Aug 22 '24 16:08 k8s-ci-robot