Skip to content

Commit 4fb03f7

Browse files
authored
support agent version deployed timestamp (#645)
1 parent c53a388 commit 4fb03f7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

cmd/lk/agent.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,14 +840,19 @@ func listAgentVersions(ctx context.Context, cmd *cli.Command) error {
840840
}
841841

842842
table := util.CreateTable().
843-
Headers("Version", "Current", "Deployed At")
843+
Headers("Version", "Current", "Created At", "Deployed At")
844844

845845
// Sort versions by created date descending
846846
slices.SortFunc(versions.Versions, func(a, b *lkproto.AgentVersion) int {
847847
return b.CreatedAt.AsTime().Compare(a.CreatedAt.AsTime())
848848
})
849849
for _, version := range versions.Versions {
850-
table.Row(version.Version, fmt.Sprintf("%t", version.Current), version.CreatedAt.AsTime().Format(time.RFC3339))
850+
table.Row(
851+
version.Version,
852+
fmt.Sprintf("%t", version.Current),
853+
version.CreatedAt.AsTime().Format(time.RFC3339),
854+
version.DeployedAt.AsTime().Format(time.RFC3339),
855+
)
851856
}
852857

853858
fmt.Println(table)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/go-logr/logr v1.4.3
1515
github.com/go-task/task/v3 v3.44.1
1616
github.com/joho/godotenv v1.5.1
17-
github.com/livekit/protocol v1.39.4-0.20250809061103-746c9d68529a
17+
github.com/livekit/protocol v1.39.4-0.20250812195800-c174813bccc6
1818
github.com/livekit/server-sdk-go/v2 v2.9.3-0.20250809171724-6ac93dd428bf
1919
github.com/moby/buildkit v0.22.0
2020
github.com/moby/patternmatcher v0.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ github.com/livekit/mageutil v0.0.0-20250511045019-0f1ff63f7731 h1:9x+U2HGLrSw5AT
278278
github.com/livekit/mageutil v0.0.0-20250511045019-0f1ff63f7731/go.mod h1:Rs3MhFwutWhGwmY1VQsygw28z5bWcnEYmS1OG9OxjOQ=
279279
github.com/livekit/mediatransportutil v0.0.0-20250519131108-fb90f5acfded h1:ylZPdnlX1RW9Z15SD4mp87vT2D2shsk0hpLJwSPcq3g=
280280
github.com/livekit/mediatransportutil v0.0.0-20250519131108-fb90f5acfded/go.mod h1:mSNtYzSf6iY9xM3UX42VEI+STHvMgHmrYzEHPcdhB8A=
281-
github.com/livekit/protocol v1.39.4-0.20250809061103-746c9d68529a h1:Hk8t/FBNu6pFu196nXoBLoIsvUcbV4JCW4eAPHxHnfY=
282-
github.com/livekit/protocol v1.39.4-0.20250809061103-746c9d68529a/go.mod h1:YlgUxAegtU8jZ0tVXoIV/4fHeHqqLvS+6JnPKDbpFPU=
281+
github.com/livekit/protocol v1.39.4-0.20250812195800-c174813bccc6 h1:HeT6HgMyBHN3cxVw8H7yklKO9Q8qIdiOTacT6xnWTqU=
282+
github.com/livekit/protocol v1.39.4-0.20250812195800-c174813bccc6/go.mod h1:YlgUxAegtU8jZ0tVXoIV/4fHeHqqLvS+6JnPKDbpFPU=
283283
github.com/livekit/psrpc v0.6.1-0.20250726180611-3915e005e741 h1:KKL1u94l6dF9u4cBwnnfozk27GH1txWy2SlvkfgmzoY=
284284
github.com/livekit/psrpc v0.6.1-0.20250726180611-3915e005e741/go.mod h1:AuDC5uOoEjQJEc69v4Li3t77Ocz0e0NdjQEuFfO+vfk=
285285
github.com/livekit/server-sdk-go/v2 v2.9.3-0.20250809171724-6ac93dd428bf h1:ZGcHV5FsWUY4OwvBDwj1X83q1EgdMbNC1Bovme8MoLc=

0 commit comments

Comments
 (0)