Skip to content

Commit 3c07b31

Browse files
committed
chore: add heartbeat to the gwag for the future use
Signed-off-by: Sergei Lukianov <[email protected]>
1 parent 28f69c5 commit 3c07b31

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

api/gwint/v1alpha1/gatewayagent_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ type GatewayAgentStatus struct {
3232
LastAppliedTime kmetav1.Time `json:"lastAppliedTime,omitempty"`
3333
// Generation of the last successful configuration application
3434
LastAppliedGen int64 `json:"lastAppliedGen,omitempty"`
35+
// Time of the last heartbeat from the agent
36+
LastHeartbeat kmetav1.Time `json:"lastHeartbeat,omitempty"`
3537
// State represents collected data from the dataplane API that includes FRR as well
3638
State GatewayState `json:"state,omitempty"`
3739
}

api/gwint/v1alpha1/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.

config/crd/bases/gwint.githedgehog.com_gatewayagents.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ spec:
251251
description: Time of the last successful configuration application
252252
format: date-time
253253
type: string
254+
lastHeartbeat:
255+
description: Time of the last heartbeat from the agent
256+
format: date-time
257+
type: string
254258
state:
255259
description: State represents collected data from the dataplane API
256260
that includes FRR as well

docs/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ _Appears in:_
480480
| `agentVersion` _string_ | AgentVersion is the version of the gateway agent | | |
481481
| `lastAppliedTime` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#time-v1-meta)_ | Time of the last successful configuration application | | |
482482
| `lastAppliedGen` _integer_ | Generation of the last successful configuration application | | |
483+
| `lastHeartbeat` _[Time](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.32/#time-v1-meta)_ | Time of the last heartbeat from the agent | | |
483484
| `state` _[GatewayState](#gatewaystate)_ | State represents collected data from the dataplane API that includes FRR as well | | |
484485

485486

0 commit comments

Comments
 (0)