Skip to content

[Feature]: support supervised updates for instance manager (while keeping the rest unsupervised) #7516

Description

@dominykas

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.
  • This could also be tackled by using the Maintenance Windows (is this no longer planned at all or just waiting for [Feature]: schedule next update timestamp of a Cluster #5272?) feature, however it does not exist yet.
  • In-place updates can also be a way out of this, however it does have downsides (pod immutability, increased risk, etc).

Additional context

No response

Backport?

Yes

Are you willing to actively contribute to this feature?

Yes

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    triage
    on May 9, 2025
  2. added
    enhancement 🪄
    on May 9, 2025
  3. dosubot commented on Aug 8, 2025

    @dosubot

    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:

    • You requested a feature to enable supervised updates specifically for the instance manager, separate from other rolling updates.
    • The goal is to better handle simultaneous updates across multiple clusters with different maintenance windows.
    • Current options are either fully supervised updates or maintenance windows, which you find undesirable or unavailable.
    • You expressed willingness to contribute and asked about backporting this feature.
    • The issue remains unresolved with no recent updates.

    What's Next:

    • Please let me know if this feature request is still relevant to the latest version of cloudnative-pg by commenting on this issue.
    • If I do not hear back within 7 days, I will automatically close the issue.

    Thank you for your understanding and contribution!

  4. dominykas commented on Aug 11, 2025

    @dominykas
    Author

    Yes, still very much interested in this!

  5. github-actions commented on Oct 23, 2025

    @github-actions
    Contributor

    This issue is stale because it has been open for 60 days with no activity.

  6. github-actions commented on Nov 6, 2025

    @github-actions
    Contributor

    This issue was closed because it has been inactive for 14 days since being marked as stale.

  7. added and removed
    triage
    on Dec 12, 2025
  8. added this to the Next milestone on Dec 12, 2025
  9. gbartolini commented on Dec 12, 2025

    @gbartolini
    Contributor

    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.

  10. dominykas commented on Dec 15, 2025

    @dominykas
    Author

    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.

  11. dominykas commented on Dec 15, 2025

    @dominykas
    Author

    I see #5272 was reopened - it would also be something that removes the need for this proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement 🪄no-stale

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions