diff --git a/config/300-pipelinerun.yaml b/config/300-pipelinerun.yaml index ec5da1f9efb..e8a7fdaa53d 100644 --- a/config/300-pipelinerun.yaml +++ b/config/300-pipelinerun.yaml @@ -23,6 +23,9 @@ spec: categories: - all - tekton-pipelines + shortNames: + - pr + - prs scope: Namespaced additionalPrinterColumns: - JSONPath: .status.conditions[?(@.type=="Succeeded")].status diff --git a/config/300-taskrun.yaml b/config/300-taskrun.yaml index f4edfb160df..d9bb6581763 100644 --- a/config/300-taskrun.yaml +++ b/config/300-taskrun.yaml @@ -23,6 +23,9 @@ spec: categories: - all - tekton-pipelines + shortNames: + - tr + - trs scope: Namespaced additionalPrinterColumns: - name: Succeeded diff --git a/examples/README.md b/examples/README.md index bbf217254a9..e7af6494a76 100644 --- a/examples/README.md +++ b/examples/README.md @@ -39,9 +39,12 @@ test-git-ref Succeeded True 2019-02-11T21:21:02Z test-git-tag Succeeded True 2019-02-11T21:21:02Z ``` + ```shell $ kubectl get pipelineruns -o=custom-columns-file=./test/columns.txt NAME TYPE STATUS START demo-pipeline-run-1 Succeeded True 2019-02-11T21:21:03Z output-pipeline-run Succeeded True 2019-02-11T21:35:43Z ``` + +You can also use `kubectl get tr` or `kubectl get pr` to query all `taskruns` or `pipelineruns` respectively.