Skip to content

Commit

Permalink
Add additionalPrinterColumns to taskrun CRD
Browse files Browse the repository at this point in the history
Added type, status, startTime and CompletionTime as additional
printer columns in taskrun. This will show the above fields when
someone does kubectl get taskruns.
Fixes tektoncd#615
  • Loading branch information
girishramnani committed Mar 28, 2019
1 parent 11fe5af commit ca30777
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/300-taskrun.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ spec:
- knative
- tekton-pipelines
scope: Namespaced
additionalPrinterColumns:
- name: Type
type: string
description: The cron spec defining the interval a CronJob is run
JSONPath: .status.conditions[0].type
- name: Status
type: string
description: The number of jobs launched by the CronJob
JSONPath: .status.conditions[0].status
- name: StartTime
type: date
JSONPath: .status.startTime
- 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 ca30777

Please sign in to comment.