Skip to content

Commit

Permalink
feat: supply version in status response fixes #1610 (#1630)
Browse files Browse the repository at this point in the history
example:

```json
ftl status | xq .controllers
[
  {
    "endpoint": "http://localhost:8892",
    "key": "ctr-0-3l7sc41jtom26nhv",
    "version": "0.236.0-dirty"
  }
]
```
  • Loading branch information
gak authored Jun 3, 2024
1 parent 295107e commit 2bc1a84
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 235 deletions.
2 changes: 2 additions & 0 deletions backend/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
"google.golang.org/protobuf/types/known/structpb"
"google.golang.org/protobuf/types/known/timestamppb"

"github.com/TBD54566975/ftl"
"github.com/TBD54566975/ftl/backend/controller/cronjobs"
"github.com/TBD54566975/ftl/backend/controller/dal"
"github.com/TBD54566975/ftl/backend/controller/ingress"
Expand Down Expand Up @@ -384,6 +385,7 @@ func (s *Service) Status(ctx context.Context, req *connect.Request[ftlv1.StatusR
return &ftlv1.StatusResponse_Controller{
Key: c.Key.String(),
Endpoint: c.Endpoint,
Version: ftl.Version,
}
}),
Runners: protoRunners,
Expand Down
Loading

0 comments on commit 2bc1a84

Please sign in to comment.