prometheus-operator
prometheus-operator copied to clipboard
Refactor controller
Description
This change extracts the code that watches statefulset-based resources and deals with state reconciliation. The PR reuses the same logic across Prometheus, Alertmanager and ThanosRuler which would facilitate the implementation of the status subresource for all of them.
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) - [X]
NONE(if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)
Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.