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

Support CustomRun list command. #2195

Closed
stillfox-lee opened this issue Dec 11, 2023 · 3 comments · Fixed by #2213
Closed

Support CustomRun list command. #2195

stillfox-lee opened this issue Dec 11, 2023 · 3 comments · Fixed by #2213
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@stillfox-lee
Copy link
Contributor

Ref: #1623 (comment)

I plan to implement the List command for CustomRun. Since the label of CustomTask is custom, the main difference between it and TaskRun is that it does not support filtering by the "Name".

UI Example

tkn customruns -h
Manage CustomRuns

Usage:
tkn customrun [flags]
tkn customrun [command]

Aliases:
customrun, cr, customruns

Available Commands:
list Lists CustomRuns in a namespace

Flags:
-c, --context string name of the kubeconfig context to use (default: kubectl config current-context)
-h, --help help for customrun
-k, --kubeconfig string kubectl config file (default: $HOME/.kube/config)
-n, --namespace string namespace to use (default: from $KUBECONFIG)
-C, --no-color disable coloring (default: false)


tkn customruns list -h
Lists CustomRuns in a namespace

Usage:
tkn customrun list [flags]

Aliases:
list, ls

Examples:
List all CustomRuns in namespace 'bar':

tkn cr list -n bar

Flags:
-A, --all-namespaces list CustomRuns from all namespaces
--allow-missing-template-keys If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats. (default true)
-h, --help help for list
--label string A selector (label query) to filter on, supports '=', '==', and '!='
--limit int Limits the number of CustomRuns. If the limit value is 0 returns all
--no-headers do not print column headers with output (default print column headers with output)
-o, --output string Output format. One of: (json, yaml, name, go-template, go-template-file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath-file).
--reverse list CustomRuns in reverse order
--show-managed-fields If true, keep the managedFields when printing objects in JSON or YAML format.
--template string Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].

Global Flags:
-c, --context string name of the kubeconfig context to use (default: kubectl config current-context)
-k, --kubeconfig string kubectl config file (default: $HOME/.kube/config)
-n, --namespace string namespace to use (default: from $KUBECONFIG)
-C, --no-color disable coloring (default: false)

@vdemeester
Copy link
Member

/kind feature

@tekton-robot tekton-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Dec 14, 2023
@piyush-garg
Copy link
Contributor

assign @stillfox-lee

@piyush-garg piyush-garg added this to the 0.35.0 milestone Jan 15, 2024
@piyush-garg
Copy link
Contributor

/assign @stillfox-lee

@piyush-garg piyush-garg linked a pull request Jan 15, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants