Skip to content

Conversation

@simonpasquier
Copy link
Contributor

@simonpasquier simonpasquier commented Dec 22, 2025

Description

This commit introduces a new updateStrategy field for statefulset-based workloads (Prometheus, PrometheusAgent, Alertmanager and ThanosRuler). While for now, there's a 1:1 mapping with StatefulSet strategies, it paves the way to the introduction of custom strategies which may be required to streamline operations in case of broken updates (similar to the scenario explained in
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#forced-rollback).

Closes #5435

Type of change

What type of changes does your code introduce to the Prometheus operator? Put an x in the box that apply.

  • CHANGE (fix or feature that would cause existing functionality to not work as expected)
  • FEATURE (non-breaking change which adds functionality)
  • BUGFIX (non-breaking change which fixes an issue)
  • ENHANCEMENT (non-breaking change which improves existing functionality)
  • NONE (if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)

Verification

Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.

Changelog entry

Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.


@simonpasquier simonpasquier requested a review from a team as a code owner December 22, 2025 17:09
@simonpasquier simonpasquier force-pushed the support-update-strategy branch 4 times, most recently from fee5df7 to 36051c8 Compare December 23, 2025 08:35
@simonpasquier simonpasquier force-pushed the support-update-strategy branch 2 times, most recently from cfd0541 to ba02700 Compare December 23, 2025 11:01
slashpai
slashpai previously approved these changes Dec 23, 2025
This commit introduces a new `updateStrategy` field for
statefulset-based workloads (Prometheus, PrometheusAgent, Alertmanager
and ThanosRuler). While for now, there's a 1:1 mapping with StatefulSet
strategies, it paves the way to the introduction of custom strategies
which may be required to streamline operations in case of broken updates
(similar to the scenario explained in
https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#forced-rollback).

Closes prometheus-operator#5435

Signed-off-by: Simon Pasquier <[email protected]>
@simonpasquier simonpasquier merged commit bcf1866 into prometheus-operator:main Jan 5, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add updateStrategy option for StatefulSets

2 participants