Skip to content

Commit

Permalink
Add extra columns for EventListeners
Browse files Browse the repository at this point in the history
Adds the address.url and the `Available` status as additional columns, so users
running `kubectl get` can access them easily.

Signed-off-by: Dibyo Mukherjee <dibyo@google.com>
  • Loading branch information
dibyom authored and tekton-robot committed Jun 16, 2020
1 parent 5904919 commit 9baf220
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/300-eventlistener.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ spec:
subresources:
status: {}
version: v1alpha1
additionalPrinterColumns:
- name: Address
type: string
JSONPath: .status.address.url
- name: Available
type: string
JSONPath: ".status.conditions[?(@.type=='Available')].status"
- name: Reason
type: string
JSONPath: ".status.conditions[?(@.type=='Available')].reason"

0 comments on commit 9baf220

Please sign in to comment.