From 822698f8c36fefe1546e3d70a0a3faf6dedfe9ff Mon Sep 17 00:00:00 2001 From: Dibyo Mukherjee Date: Tue, 16 Jun 2020 16:27:29 -0400 Subject: [PATCH] Add extra columns for EventListeners 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 --- config/300-eventlistener.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/300-eventlistener.yaml b/config/300-eventlistener.yaml index 28aa14465..59d7ec47a 100644 --- a/config/300-eventlistener.yaml +++ b/config/300-eventlistener.yaml @@ -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" \ No newline at end of file