Skip to content

Commit

Permalink
[kueuectl] Added kueuectl list pods command (#2280)
Browse files Browse the repository at this point in the history
* Added kueuectl list pods cmd

* indent and fix PR comments

* fix: goimports

* chore: remove ctx args in tt

* refactor get pods logic for multiple types

* test: Add more job type tests

* refactor: based on comments for listpods & helpers

* remove fmt

* refactor unit tests

* refactor based on commments (1)

* refactor based on commments (2)

* refactor: handle if no resources found

* Added seperate printer for list pods

* rename list_pods_printer

* Refactor printers logic and comments

* fix lint

* Refactor ForObject parsing and comments

* Refactor ListPods logic to use common podLabelSelector

* Refactor jobLabels as per comment

* breakdown Complete() by adding functions

* merge listPods() to Run()

* go mod vendor

* more refactor for podLabelSelection

* support more columns for list pod

* more refactor based on PR comments (1)

* Refactor get pods logic to user API directly

* More refactor based on comments (1)

* Run generate-docs

* support multiple outputs

* refactor: support multiple outputs

* refactor & rm unused params in test

* go mod tidy

* handle podLablesSelectors and refactor

* bugfix: label selectors for raycluster and MPI

* bugfix: add operator name labels for pod selectors

* remove podgroup support

* use kubectl get package for table_printers

* remove podLabelSelector from GenericJob interface

* (revert) remove podgroup support

* go mod tidy (remove goVersion)
  • Loading branch information
Kavinraja-G authored Aug 21, 2024
1 parent 60cc84e commit 986d3fe
Show file tree
Hide file tree
Showing 272 changed files with 68,330 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/kueuectl/app/list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
)

const (
listExample = ` # List LocalQueue
listExample = ` # List LocalQueue
kueuectl list localqueue`
)

Expand All @@ -41,6 +41,7 @@ func NewListCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStrea
cmd.AddCommand(NewClusterQueueCmd(clientGetter, streams, clock))
cmd.AddCommand(NewWorkloadCmd(clientGetter, streams, clock))
cmd.AddCommand(NewResourceFlavorCmd(clientGetter, streams, clock))
cmd.AddCommand(NewPodCmd(clientGetter, streams))

return cmd
}
Loading

0 comments on commit 986d3fe

Please sign in to comment.