infinispan / infinispan-operator

Infinispan Operator
https://infinispan.org/docs/infinispan-operator/main/operator.html
Apache License 2.0
50 stars 54 forks source link

Resources should utilise recommended Kubernetes labels #597

Open ryanemerson opened 4 years ago

ryanemerson commented 4 years ago

There are recommended labels that should be applied to resources the operator creates. We should add these to the various statefulsets, services etc that the operator creates:

k8s Labels

edeandrea commented 4 years ago

In addition, we should allow the CRs to allow users to specify labels/annotations that would carry forward to resources that the operator creates, like these

https://docs.openshift.com/container-platform/4.5/applications/application_life_cycle_management/odc-viewing-application-composition-using-topology-view.html#odc-labels-and-annotations-used-for-topology-view_viewing-application-composition-using-topology-view

For example, Strimzi provides this ability through a template section in the custom resource - https://strimzi.io/docs/operators/master/using.html#type-MetadataTemplate-reference