nmstate / kubernetes-nmstate

Declarative node network configuration driven through Kubernetes API.
GNU General Public License v2.0
184 stars 90 forks source link

Show status age in NNCE list #1133

Closed phoracek closed 1 year ago

phoracek commented 1 year ago

What happened:

When listing NNCEs using kubectl get nnce, their name status and reason are listed. The time when they reached the status is not listed and that makes is hard to figure out which NNCEs are recent.

What you expected to happen:

The time when the status was changed (or age) should be listed. This information could be obtained from the relevant condition's change timestamp.

Example:

$ oc get nnce
NAME                                 STATUS    STATUS AGE        REASON
monster01.enable-lldp-ethernets-up   Aborted   56m               ConfigurationAborted
monster02.enable-lldp-ethernets-up   Aborted   56m               ConfigurationAborted
monster03.enable-lldp-ethernets-up   Failing   55m               FailedToConfigure