fix(its): correct InstanceStatus convergence semantics - #10799
Merged
Conversation
Collaborator
|
Auto Cherry-pick Instructions CLA Recheck Instructions |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10799 +/- ##
==========================================
+ Coverage 65.26% 65.62% +0.36%
==========================================
Files 510 510
Lines 64016 64185 +169
==========================================
+ Hits 41780 42122 +342
+ Misses 18497 18318 -179
- Partials 3739 3745 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Aug 25, 2026
Collaborator
Author
|
/approve |
apecloud-bot
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
InstanceStatus.UpToDateas full convergence of an Active/Present instance to the current InstanceSet desired state: Pod target, dynamic configs, and PVC expansionDesiredStateandCurrentStateUpToDatefor a desired Active identity whose current Pod/Instance is missing during generation handoff, without rewriting runtime health fieldsReady,Available,Failed, andRoleas current runtime observations, independent of desired-state convergenceInstanceStatuscontractContract and design
status.observedGenerationcontinues to mean that the controller has observed and started processing the InstanceSet generation. It does not make the entire status an atomic snapshot of that generation, and this change adds no generation field or reconciler reordering.The supported existing-instance update domains are:
VolumeExpansionLegacy ITS checks revision-excluded Pod fields directly. ITS2 compares the desired and current child Instance in the same supported domains. If a child generation has not yet been observed, its previous parent
UpToDate=truecannot cross the handoff even when the child spec has already been submitted and matches the desired spec.InstanceStatus.CurrentRevisionandUpdateRevisionremain in the Pod-revision domain. ITS2 deterministically computes the desired revision from each Active desired child spec, matching legacy ITS publication timing instead of waiting for child status. Legacy aggregate revision maps remain in the Pod-revision domain, while ITS2 aggregate revision maps remain in their existing Instance-spec revision domain.Runtime health helpers require a current observed Instance generation and their runtime condition, but do not require
UpToDate. ITS2 update planning and updated-replica accounting still require full convergence.Rolling coordination explicitly combines health and convergence. Before sorting or traversing candidates, ITS2 counts existing handed-off-but-unconverged participants against
maxUnavailableand, for roleful updates, against the member-update plan. Runtime unavailability by itself counts only against the availability budget. This preserves Serial one-by-one behavior even whenmaxUnavailableis greater than one.Scope and downstream audit
UpToDateorUpdateRevisionconsumerUpToDate,Ready,Available, andFaileddimensions and carries no ITS/ITS2 producer workaroundValidation
instancestatus, andcontrollerutiltest suitescontrollers/workloadsenvtest suitepkg/operations/...andcontrollers/operations/...make generate,make manifests, andmake docFixes #10800.
Follow-up to #10758. Independent of #10760.