feat: Implement agent heartbeat with mTLS and node status tracking

This commit is contained in:
2025-05-17 13:32:05 -04:00
parent dad5586339
commit 3408e7801e
7 changed files with 639 additions and 16 deletions

View File

@ -142,4 +142,5 @@ func (s *Server) RegisterJoinHandler(handler http.HandlerFunc) {
// RegisterNodeStatusHandler registers the handler for node status updates
func (s *Server) RegisterNodeStatusHandler(handler http.HandlerFunc) {
s.router.HandleFunc("POST", "/v1alpha1/nodes/{nodeName}/status", handler)
log.Printf("Registered node status handler at /v1alpha1/nodes/{nodeName}/status")
}