odpi / egeria-k8s-operator

Egeria Kubernetes operator
https://egeria.odpi.org
Apache License 2.0
10 stars 1 forks source link

Enhance custom status report of egeria CR #34

Open planetf1 opened 2 years ago

planetf1 commented 2 years ago

Current status is reported as

NAME                    PODS                                                                                                                                                         DEPLOYMENT                         AGE
egeriaplatform-sample   ["egeriaplatform-sample-deployment-694fdb9bb-hxjwn","egeriaplatform-sample-deployment-694fdb9bb-86phg","egeriaplatform-sample-deployment-694fdb9bb-mv2pf"]   egeriaplatform-sample-deployment   3m22s

This was done to demonstrate the capability of reporting additional information in a custom status field. In the above case this reports the list of deployments.

The information is added into the status by the controller, and tagged to provide the custom output from 'get'

Status:
  Deployment:  egeriaplatform-sample-deployment
  Pods:
    egeriaplatform-sample-deployment-694fdb9bb-hxjwn
    egeriaplatform-sample-deployment-694fdb9bb-86phg
    egeriaplatform-sample-deployment-694fdb9bb-mv2pf
  Service:  egeriaplatform-sample-service

It may be more useful to consider reporting

planetf1 commented 2 years ago

This also extends to the overall status section of the CR -- where other observations can be added And also the inclusion of 'last event' or similar