cloudfoundry / eirini-release

Helm release for Project Eirini
Apache License 2.0
36 stars 34 forks source link

Get instances of an LRP custom resource #201

Closed danail-branekov closed 3 years ago

danail-branekov commented 3 years ago

The REST API can get the instances of an LRP which is currently not possible with the LRP custom resource.

We want to do this by introducing an Instance CRD, and create an Instance resource per instance in the LRP. The CRD should have the same fields as the JSON representation in the REST API, as long as it makes sense.

gcapizzi commented 3 years ago

We already apply annotations with labels that make it easy to retrieve the list of Pods belonging to an LRP, similarly to what happens for StatefulSets or Deployments, which is enough for now. We might revisit this in the future.