-
-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
release-noteDenotes a PR that will be considered when it comes time to generate release notes.Denotes a PR that will be considered when it comes time to generate release notes.release-note/action-requiredDenotes a PR that introduces potentially breaking changes that require user action.Denotes a PR that introduces potentially breaking changes that require user action.release/25.7.0type/bug
Description
Affected version
Yes. (Still an issue on trunk, introduced in #571, rolled out around SDP 23.4.)
Current and expected behavior
Reconciling a cluster where there nothing has changed should be a no-op.
ClusterCondition::last_update_time breaks this expectation since it is set unconditionally to whatever the current time is, rounded to the second (
operator-rs/crates/stackable-operator/src/status/condition/mod.rs
Lines 350 to 355 in 61596d6
| if old_condition.status == new_condition.status { | |
| ClusterCondition { | |
| last_update_time: Some(now), | |
| last_transition_time: old_condition.last_transition_time, | |
| ..new_condition | |
| } |
Possible solution
- Drop
last_update_timecompletely (for compat: either stub it out or make it equivalent tolast_transition_time) - Take the value from whenever the data source for the condition was updated, rather than the current wall time (if it makes sense/is possible for that condition)
Additional context
Discovered by @siegfriedweber, discussed at https://stackable-workspace.slack.com/archives/C02FZ581UCD/p1747230004370629
Environment
No response
Would you like to work on fixing this bug?
None
Metadata
Metadata
Assignees
Labels
release-noteDenotes a PR that will be considered when it comes time to generate release notes.Denotes a PR that will be considered when it comes time to generate release notes.release-note/action-requiredDenotes a PR that introduces potentially breaking changes that require user action.Denotes a PR that introduces potentially breaking changes that require user action.release/25.7.0type/bug
Type
Projects
Status
Done