Skip to content

Commit b2964c0

Browse files
add lastUpdatedAt to Entity Status to track changes (#99)
1 parent 253b425 commit b2964c0

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

api/v1/qdrantentity_types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ type EntityPhase string
5959
const (
6060
EntityPhaseCreating EntityPhase = "Creating"
6161
EntityPhaseReady EntityPhase = "Ready"
62+
EntityPhaseUpdating EntityPhase = "Updating"
6263
EntityPhaseFailing EntityPhase = "Failing"
6364
EntityPhaseDeleting EntityPhase = "Deleting"
6465
EntityPhaseDeleted EntityPhase = "Deleted"
@@ -69,10 +70,12 @@ const (
6970

7071
type QdrantEntityStatus struct {
7172
// Phase is the current phase of the entity
72-
// +kubebuilder:validation:Enum=Creating;Ready;Failing;Deleting;Deleted
73+
// +kubebuilder:validation:Enum=Creating;Ready;Updating;Failing;Deleting;Deleted
7374
Phase EntityPhase `json:"phase,omitempty"`
7475
// Result is the last result from the invocation to a manager
7576
Result QdrantEntityStatusResult `json:"result,omitempty"`
77+
// Timestamp when the status was last updated.
78+
LastUpdatedAt metav1.Time `json:"lastUpdatedAt,omitempty"`
7679
}
7780

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

api/v1/zz_generated.deepcopy.go

Lines changed: 1 addition & 0 deletions
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,16 @@ 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
8185
phase:
8286
description: Phase is the current phase of the entity
8387
enum:
8488
- Creating
8589
- Ready
90+
- Updating
8691
- Failing
8792
- Deleting
8893
- Deleted

crds/qdrant.io_qdrantentities.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,16 @@ 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
8084
phase:
8185
description: Phase is the current phase of the entity
8286
enum:
8387
- Creating
8488
- Ready
89+
- Updating
8590
- Failing
8691
- Deleting
8792
- Deleted

0 commit comments

Comments
 (0)