-
Notifications
You must be signed in to change notification settings - Fork 12
HYPERFLEET-1017 - feat: rename aggregated condition Available to LastKnownReconciled #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| aliases-core.tsp | ||
| aliases-gcp.tsp |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| openapi: 3.0.0 | ||
| info: | ||
| title: HyperFleet API | ||
| version: 1.0.10 | ||
| version: 1.0.11 | ||
| contact: | ||
| name: HyperFleet Team | ||
| license: | ||
|
|
@@ -50,7 +50,7 @@ paths: | |
|
|
||
| **Note**: The `status` object in the response is read-only and computed by the service. | ||
| It is NOT part of the request body. Initially, | ||
| status.conditions will include mandatory "Available", "Ready" and "Reconciled" conditions. | ||
| status.conditions will include mandatory "LastKnownReconciled", "Ready" and "Reconciled" conditions. | ||
| parameters: [] | ||
| responses: | ||
| '201': | ||
|
|
@@ -189,10 +189,10 @@ paths: | |
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
| last_transition_time: '2021-01-01T10:00:00Z' | ||
| - type: Available | ||
| - type: LastKnownReconciled | ||
| status: 'True' | ||
| reason: All adapters reported Available True for the same generation | ||
| message: All adapters reported Available True for the same generation | ||
| reason: All required adapters were reconciled at a common observed generation | ||
| message: All required adapters were reconciled at a common observed generation | ||
| observed_generation: 2 | ||
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
|
|
@@ -394,10 +394,10 @@ paths: | |
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
| last_transition_time: '2021-01-01T10:00:00Z' | ||
| - type: Available | ||
| - type: LastKnownReconciled | ||
| status: 'True' | ||
| reason: All adapters reported Available True for the same generation | ||
| message: All adapters reported Available True for the same generation | ||
| reason: All required adapters were reconciled at a common observed generation | ||
| message: All required adapters were reconciled at a common observed generation | ||
| observed_generation: 2 | ||
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
|
|
@@ -1146,10 +1146,10 @@ components: | |
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
| last_transition_time: '2021-01-01T10:00:00Z' | ||
| - type: Available | ||
| - type: LastKnownReconciled | ||
| status: 'True' | ||
| reason: All adapters reported Available True for the same generation | ||
| message: All adapters reported Available True for the same generation | ||
| reason: All required adapters were reconciled at a common observed generation | ||
| message: All required adapters were reconciled at a common observed generation | ||
| observed_generation: 1 | ||
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
|
|
@@ -1270,7 +1270,7 @@ components: | |
| **Mandatory conditions**: | ||
| - `type: "Ready"` *(deprecated — use Reconciled)*: Whether all adapters report successfully at the current generation. | ||
| - `type: "Reconciled"`: Whether the resource's desired state has been fully reconciled by all adapters at the current generation. | ||
| - `type: "Available"`: Aggregated adapter result for a common observed_generation. | ||
| - `type: "LastKnownReconciled"`: Sticky cross-generation condition — stays True as long as all required adapters were reconciled at a common observed generation, even if a newer generation is being processed. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
After adding Suggested fix ClusterStatus:
@@
conditions:
@@
- minItems: 2
+ minItems: 3
@@
NodePoolStatus:
@@
conditions:
@@
- minItems: 2
+ minItems: 3Also applies to: 1639-1639 🤖 Prompt for AI Agents |
||
|
|
||
| These conditions are present immediately upon resource creation. | ||
| description: |- | ||
|
|
@@ -1445,10 +1445,10 @@ components: | |
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
| last_transition_time: '2021-01-01T10:00:00Z' | ||
| - type: Available | ||
| - type: LastKnownReconciled | ||
| status: 'True' | ||
| reason: All adapters reported Available True for the same generation | ||
| message: All adapters reported Available True for the same generation | ||
| reason: All required adapters were reconciled at a common observed generation | ||
| message: All required adapters were reconciled at a common observed generation | ||
| observed_generation: 1 | ||
| created_time: '2021-01-01T10:00:00Z' | ||
| last_updated_time: '2021-01-01T10:00:00Z' | ||
|
|
@@ -1636,7 +1636,7 @@ components: | |
| **Mandatory conditions**: | ||
| - `type: "Ready"` *(deprecated — use Reconciled)*: Whether all adapters report successfully at the current generation. | ||
| - `type: "Reconciled"`: Whether the resource's desired state has been fully reconciled by all adapters at the current generation. | ||
| - `type: "Available"`: Aggregated adapter result for a common observed_generation. | ||
| - `type: "LastKnownReconciled"`: Sticky cross-generation condition — stays True as long as all required adapters were reconciled at a common observed generation, even if a newer generation is being processed. | ||
|
|
||
| These conditions are present immediately upon resource creation. | ||
| description: |- | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove
Availablefrom here?ConditionType.Availableappears inexample_adapter_status.tspbut it may be better defined as a newAdapterConditionTypeand define alsoApplied, Health, Finalizedfor reuseThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! I kept
Availablehere intentionally since adapters still referenceConditionType.Availablein their status reports. Splitting adapter-specific conditions (Available,Applied,Health,Finalized) into a dedicatedAdapterConditionTypeunion is a great idea — I'll create a follow-up ticket for that so we can handle it cleanly without expanding the scope of this rename.