Skip to content

Commit 58bab71

Browse files
switch to observedGeneration to track Entity Status updates (#106)
1 parent 22c0b4a commit 58bab71

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

api/v1/qdrantentity_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ type QdrantEntityStatus struct {
7474
Phase EntityPhase `json:"phase,omitempty"`
7575
// Result is the last result from the invocation to a manager
7676
Result QdrantEntityStatusResult `json:"result,omitempty"`
77-
// Timestamp when the status was last updated.
78-
LastUpdatedAt metav1.MicroTime `json:"lastUpdatedAt,omitempty"`
77+
// ObservedGeneration is the 'Generation' of the resource that was last processed by the controller
78+
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
7979
}
8080

8181
// EntityResult is the last result from the invocation to a manager

api/v1/zz_generated.deepcopy.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/qdrant-kubernetes-api/templates/region-crds/qdrant.io_qdrantentities.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ spec:
7878
type: object
7979
status:
8080
properties:
81-
lastUpdatedAt:
82-
description: Timestamp when the status was last updated.
83-
format: date-time
84-
type: string
81+
observedGeneration:
82+
description: ObservedGeneration is the 'Generation' of the resource
83+
that was last processed by the controller
84+
format: int64
85+
type: integer
8586
phase:
8687
description: Phase is the current phase of the entity
8788
enum:

crds/qdrant.io_qdrantentities.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ spec:
7777
type: object
7878
status:
7979
properties:
80-
lastUpdatedAt:
81-
description: Timestamp when the status was last updated.
82-
format: date-time
83-
type: string
80+
observedGeneration:
81+
description: ObservedGeneration is the 'Generation' of the resource
82+
that was last processed by the controller
83+
format: int64
84+
type: integer
8485
phase:
8586
description: Phase is the current phase of the entity
8687
enum:

0 commit comments

Comments
 (0)