Skip to content

fix(controller): move a ModelConfig condition's transition time only on a status change (v1.0.x backport) - #3601

Closed
EItanya wants to merge 1 commit into
backport/v1.0.x/05-3563from
backport/v1.0.x/06-3340
Closed

EItanya wants to merge 1 commit into
backport/v1.0.x/05-3563from
backport/v1.0.x/06-3340

Conversation

@EItanya

@EItanya EItanya commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

…on a status change (#3340)

## Problem
The ModelConfig status writer moves a condition's `lastTransitionTime`
whenever its reason, message or observedGeneration changes. Agent
conditions, and SandboxTemplate through `apimeta.SetStatusCondition`,
move it only when the status changes, as the API conventions define it.
A ModelConfig that stays `False` therefore reports a new transition time
every time its error text or generation changes.

## Change
Agent and ModelConfig share one helper that keeps the transition time
while a condition's status holds. A new test covers a changed reason,
message and generation under an unchanged status, and a status change.

This PR previously wrote Harness `Ready`/`Booted` conditions; #3454
removed `Harness.status`, so it is reduced to the transition-time rule
that part shared with Agent and ModelConfig.

Signed-off-by: QuentinBisson <quentin@giantswarm.io>
(cherry picked from commit 347acbe)
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
@EItanya

EItanya commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Closing: the team decided to leave release/v1.0.x as it is for stability, so neither the revert of #3586 nor the re-stacked backports will land.

Comment left by Claude on behalf of @EItanya

@EItanya EItanya closed this Nov 9, 2026
@EItanya
EItanya deleted the backport/v1.0.x/06-3340 branch November 10, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants