Skip to content

Commit

Permalink
Improve Pipelinerun description and printcolumn fields
Browse files Browse the repository at this point in the history
* Improve from the default CRD description.
* Only shows the Reason when succedeed
* Only shows the CompletionTime when it finishes running

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel committed Apr 5, 2019
1 parent d719494 commit 1369ad9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions config/300-pipelinerun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ spec:
- tekton-pipelines
scope: Namespaced
additionalPrinterColumns:
- name: Type
- JSONPath: .status.conditions[*].type
description: The exit type of the pipelinerun
name: Type
type: string
description: The cron spec defining the interval a CronJob is run
JSONPath: .status.conditions[0].type
- name: Status
- JSONPath: .status.conditions[?(@.type=="Succeeded")].status
description: The status of the pipelinrun
name: Status
type: string
description: The number of jobs launched by the CronJob
JSONPath: .status.conditions[0].status
- name: StartTime
- JSONPath: .status.startTime
name: StartTime
type: date
JSONPath: .status.startTime
- name: CompletionTime
- JSONPath: .status.conditions[?(@.reason!="Running")].lastTransitionTime
name: CompletionTime
type: date
JSONPath: .status.conditions[0].lastTransitionTime
# Opt into the status subresource so metadata.generation
# starts to increment
subresources:
Expand Down

0 comments on commit 1369ad9

Please sign in to comment.