agent endpoints: log the deployment with worker registration

Workers are keyed by deployment alongside agent name, namespace and job type.
The registered and last-deregistered lines named every part of that key except
the deployment.
This commit is contained in:
Paul Wells
2026-09-15 00:31:13 -07:00
parent 39c9c10f00
commit aae12e30d5
+2
View File
@@ -285,6 +285,7 @@ func (h *AgentHandler) registerWorker(w *agent.Worker) {
"namespace", w.Namespace,
"jobType", w.JobType,
"agentName", w.AgentName,
"deployment", w.Deployment,
"workerID", w.ID,
)
if created {
@@ -320,6 +321,7 @@ func (h *AgentHandler) deregisterWorker(w *agent.Worker) {
"namespace", w.Namespace,
"jobType", w.JobType,
"agentName", w.AgentName,
"deployment", w.Deployment,
"workerID", w.ID,
)
delete(h.namespaceWorkers, key)