You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: support supervised updates for instance manager (while keeping the rest unsupervised) #7516
Is there an existing issue already for this feature request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
In general, all rolling update trigger conditions are specific to changes of an individual Cluster resource, except for the instance manager upgrade after the operator update (and possibly a change in image catalog? This is new, so not 100% sure).
When running multiple Cluster resources in a k8s cluster, in case of an instance manager update, they would all normally get updated at the same time - this is problematic when each of them has a different maintenance window for downtime.
Describe the solution you'd like
Have a way to do supervised updates for the instance manager, while keeping the unsupervised updates for the rest of the rolling upgrades.
Describe alternatives you've considered
The issue could be tackled by using supervised updates, however enabling that also requires manual intervention for all the other cases (e.g. new image version), which is undesirable.
Thanks @dominykas. I have re-opened this issue as it was closed automatically. I am not sure if the existing feature for spread ugrades already solves your issue. Otherwise, we had in the past thought about adding support for maintenance windows (#14), and was wondering if that'd help too. Thanks.
Yes, I think maintenance windows (#14) would be a much better solution for this.
Spread upgrades do not solve this, as they still do not offer control over when to do the upgrade - only to not do it all at once, if I get it right.
We've since tried in-place upgrades, but they resulted in restarts regardless (because, IIRC, some config settings were introduced as new defaults, or something like that) - so I guess even if this issue would get implemented, there's still a chance that CNPG upgrade would result in a restart/switchover of PG instances, which is what we're trying to avoid here.
Activity
dosubot commentedon Aug 8, 2025
Hi, @dominykas. I'm Dosu, and I'm helping the cloudnative-pg team manage their backlog and am marking this issue as stale.
Issue Summary:
What's Next:
Thank you for your understanding and contribution!
dominykas commentedon Aug 11, 2025
Yes, still very much interested in this!
github-actions commentedon Oct 23, 2025
This issue is stale because it has been open for 60 days with no activity.
github-actions commentedon Nov 6, 2025
This issue was closed because it has been inactive for 14 days since being marked as stale.
gbartolini commentedon Dec 12, 2025
Thanks @dominykas. I have re-opened this issue as it was closed automatically. I am not sure if the existing feature for spread ugrades already solves your issue. Otherwise, we had in the past thought about adding support for maintenance windows (#14), and was wondering if that'd help too. Thanks.
dominykas commentedon Dec 15, 2025
Yes, I think maintenance windows (#14) would be a much better solution for this.
Spread upgrades do not solve this, as they still do not offer control over when to do the upgrade - only to not do it all at once, if I get it right.
We've since tried in-place upgrades, but they resulted in restarts regardless (because, IIRC, some config settings were introduced as new defaults, or something like that) - so I guess even if this issue would get implemented, there's still a chance that CNPG upgrade would result in a restart/switchover of PG instances, which is what we're trying to avoid here.
dominykas commentedon Dec 15, 2025
I see #5272 was reopened - it would also be something that removes the need for this proposal.