keikoproj/active-monitor

Add healthcheck status info to kubectl get response

davemasselink opened this issue · 1 comments

Is your feature request related to a problem? Please describe
The problem is that the latest status as well as success/fail counts related to a healthcheck can only be seen when it is kubectl describe ...d.

Describe the solution you'd like
Instead, at least three columns should be added to the custom printer for healthcheck objects. Those are: status, success count, failure count.

This should be straightforward to accomplish using kubebuilder annotations regarding additional-printer-columns

Current example:

NAME      AGE
foo       1h
bar       1h

Target example:

NAME        LATEST STATUS        SUCCESS CNT        FAIL CNT        AGE
foo         Succeeded            4                  0               1h
bar         Failed               1                  3               1h

Related Reading
https://book.kubebuilder.io/reference/generating-crd.html#additional-printer-columns

https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#additional-printer-columns

accomplished in #33