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

Implement info command #198

Closed
wants to merge 15 commits into from

Conversation

pawloch00
Copy link
Collaborator

@pawloch00 pawloch00 commented Oct 7, 2024

Fixes / Features

Add xpk info command. There are two subcommands: xpk info localqueues, xpk info clusterqueues, for both of them there is --cluster flag supported.

Testing / Documentation

Testing details.

  • [ y/n ] Tests pass
  • [ y/n ] Appropriate changes to documentation are included in the PR

Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
curl = 'curl -Lo ./kubectl-kueue https://github.com/kubernetes-sigs/kueue/releases/download/v0.8.1/kubectl-kueue-linux-amd64'

chmod = 'chmod +x ./kubectl-kueue'
mv = 'sudo mv ./kubectl-kueue /usr/local/bin/kubectl-kueue'
Copy link
Collaborator

Choose a reason for hiding this comment

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

@44past4 Should we assume user will have sudo permissions? WDYT?

src/xpk/core/kueue.py Outdated Show resolved Hide resolved
Comment on lines +31 to +41
info_required_arguments.add_argument(
'--localqueue',
action='store_true',
help = 'Print info about localqueue',
)

info_required_arguments.add_argument(
'--clusterqueue',
action='store_true',
help = 'Print info about clusterqueue',
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe we would prefer to create two tables with every xpk info invocation. One for localqueues and the other for clusterqueues. WDYT @44past4? If you want to implement mutual exclusion between localqueue and clusterqueue flags use add_mutually_exclusive_group() - example

Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
Signed-off-by: Piotr Pawłowski <ppawl@google.com>
@pawloch00 pawloch00 closed this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants