Skip to content

Conversation

@Frostman
Copy link
Member

Fixes #224

@Frostman Frostman requested a review from Copilot November 10, 2025 03:01
@github-actions
Copy link

🚀 Temp artifacts published: v0-4b8a83ff0 🚀

Copy link

Copilot AI left a 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.

@Frostman Frostman force-pushed the dev/frostman/dp-state branch from 4b8a83f to 88eb2fb Compare November 10, 2025 03:29
@Frostman Frostman marked this pull request as draft November 10, 2025 03:31
@github-actions
Copy link

🚀 Temp artifacts published: v0-c90ef4134 🚀

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>
@Frostman Frostman force-pushed the dev/frostman/dp-state branch from c90ef41 to cba6e24 Compare November 16, 2025 18:08
@github-actions
Copy link

🚀 Temp artifacts published: v0-cba6e2417 🚀

@Frostman Frostman marked this pull request as ready for review November 16, 2025 18:11
Frostman and others added 2 commits November 16, 2025 10:11
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>
@Frostman Frostman force-pushed the dev/frostman/dp-state branch from cba6e24 to 1135e3c Compare November 16, 2025 18:12
@Frostman Frostman requested a review from Copilot November 16, 2025 18:12
Copilot finished reviewing on behalf of Frostman November 16, 2025 18:14
@github-actions
Copy link

🚀 Temp artifacts published: v0-1135e3cbf 🚀

Copy link

Copilot AI left a 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.

@Frostman Frostman merged commit 1682d86 into master Nov 16, 2025
16 checks passed
@Frostman Frostman deleted the dev/frostman/dp-state branch November 16, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Collect available status data from gRPC and expose on GWAg object

2 participants