percona / percona-postgresql-operator

Percona Operator for PostgreSQL
https://www.percona.com/doc/kubernetes-operator-for-postgresql/index.html
Apache License 2.0
258 stars 50 forks source link

Label selector for watched namespaces #700

Closed RobKenis closed 5 months ago

RobKenis commented 5 months ago

Proposal

Enable or disable reconciliation in namespace based on labels on the namespace.

Use-Case

We have a procedure where we want to scale all pods in a namespace to 0. This is hard while using the operator, because the operator will set the replicas back to what is defined in the cluster spec. We would like a way to disable reconciliation for a namespace. This might be possible by setting a label on the namespace and make the operator aware of what labels it requires to reconcile a namespace.

Is this a feature you are interested in implementing yourself?

Maybe

Anything else?

No response

RobKenis commented 5 months ago

We can use https://docs.percona.com/percona-operator-for-postgresql/2.0/pause.html for now