Can't restart or pause the cluster

Description

In PXC/PSMDB operators there's the `pause` field that allows the user to pause/restart the cluster.
In the PG operator v2.0.0 there are two fields in the CR spec `paused` and `shutdown`. Looking at the documentation I was expecting that `shutdown` had a similar behavior to the `pause` field in PXC/PSMDB however, when I set it to `true`, I saw no change to the cluster state. Even though the documentation mentions a different purpose, I also tried with `paused` just because but had the same result (no change).

Steps to reproduce

  1. kubectl apply --server-side -f https://raw.githubusercontent.com/percona/percona-postgresql-operator/v2.0.0/deploy/bundle.yaml

  2. kubectl apply -f https://raw.githubusercontent.com/percona/percona-postgresql-operator/v2.0.0/deploy/cr.yaml

  3. Add `shutdown: true` to the CR spec

  4. Notice that no change was reflected to the cluster state/pods

Environment

None

Activity

Diogo Recharte April 12, 2023 at 1:14 PM

Thanks

Ivan Pylypenko April 12, 2023 at 9:45 AM

Hey

The fix has been merged to main branch. It works as expected

Diogo Recharte March 16, 2023 at 11:08 AM

Actually, when I update the CR and add the `shutdown: true` there's no new logs in the operator. No reconciliation seems to be happening at all (from the logs perspective obviously).

Ivan Pylypenko March 16, 2023 at 11:02 AM

Hey

what's in the operators' log?

Done

Details

Assignee

Reporter

Needs QA

Yes

Fix versions

Affects versions

Priority

Smart Checklist

Created March 16, 2023 at 10:55 AM
Updated March 5, 2024 at 3:51 PM
Resolved April 12, 2023 at 9:45 AM