zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.37k stars 980 forks source link

do not use extra labels to list stream CRDs #2803

Open FxKu opened 2 days ago

FxKu commented 2 days ago

Using extra labels for searching stream CRs leads to the creation of new resources when, for example, the teamId label changes. This should not happen. Only use cluster labels for search like we do in other list API calls. Unit test have to reflect the behavior, too.

The stream resource, on the other hand, should get all labels and we have to include a label comparison to the compareStream function. The corresponding unit test has been extended.