-
Notifications
You must be signed in to change notification settings - Fork 2
feat(agent,api): collect and expose status from dp grpc api #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
🚀 Temp artifacts published: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds dataplane status collection functionality to the gateway agent, enabling periodic gathering of runtime status information from the dataplane including FRR daemon status and VPC peering statistics.
Key changes:
- Introduces a new status ticker (15-second interval) to periodically collect dataplane status via gRPC
- Adds new API types (
GatewayState,FRRStatus,DataplaneStatus,PeeringStatus) to represent collected status information - Refactors status update logic from a standalone function to a method with change detection to reduce unnecessary updates
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/agent/agent.go | Adds state field to Service struct, introduces statusTicker for periodic status collection, refactors updateStatus() as a method with change detection, and implements new collectDataplaneStatus() method to gather dataplane metrics |
| api/gwint/v1alpha1/gatewayagent_types.go | Defines new API types for gateway state tracking including GatewayState, DataplaneStatus, FRRStatus, and PeeringStatus structures |
| justfile | Updates controller-gen command to allow dangerous types (maps with non-string values) for CRD generation |
| docs/api.md | Auto-generated API documentation reflecting the new status-related types |
| config/crd/bases/gwint.githedgehog.com_gatewayagents.yaml | Auto-generated CRD manifest with new state field definitions |
| api/gwint/v1alpha1/zz_generated.deepcopy.go | Auto-generated DeepCopy methods for the new status types |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
4b8a83f to
88eb2fb
Compare
|
🚀 Temp artifacts published: |
Fixes #224 Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
c90ef41 to
cba6e24
Compare
|
🚀 Temp artifacts published: |
This is an automated commit created by GitHub Actions workflow, in the gateway-proto repository. Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
cba6e24 to
1135e3c
Compare
|
🚀 Temp artifacts published: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 7 out of 10 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #224