Sfoglia il codice sorgente

style: plain hyphens in the workloads entry and credit its author

gnacho 5 giorni fa
parent
commit
0f17ab9f13

+ 1 - 1
CHANGELOG.md

@@ -9,7 +9,7 @@ y este proyecto se adhiere a [Versionado Semántico](https://semver.org/lang/es/
 
 ### Added
 
-- A host that runs other machines — an RKE2 node, a PVE box, a Docker host — can report the guests nested inside it through an optional `workloads` section in the push: stable id, name, kind and state per guest. The server keeps the census as reported and shows it on the unit's detail page, a count and a list with each workload's state. It is detail data, not graph data: a node with a hundred pods does not draw a hundred clients (#2227).
+- A host that runs other machines - an RKE2 node, a PVE box, a Docker host - can report the guests nested inside it through an optional `workloads` section in the push: stable id, name, kind and state per guest. The server keeps the census as reported and shows it on the unit's detail page, a count and a list with each workload's state. It is detail data, not graph data: a node with a hundred pods does not draw a hundred clients (#2227). Thanks to @brainnoms for the contract.
 - A switch fed only by the Realtek beacon can report the LLDP neighbours it receives, as an optional `lldp` section in the datagram, so the topology gets the chassis name, the local port and the management address from the unit that really sees those frames. The section is bounded (64 neighbours, 128 characters per text field), an old build keeps working unchanged, and an absent section keeps the last known neighbours (#2184).
 - A rejected push says why. The server answered `unauthorized`, `invalid_signature` or `stale_payload` and kept only a timestamp, so the panel showed the same "token rejected" badge for a stale token, an agent older than the server and a unit whose clock is minutes off. The reason is stored next to the timestamp, returned by `/api/agents` as `rejectedReason`, shown in the badge tooltip with what to check, and quoted in the auto-rearm alert, which no longer says "restarted but did not come back" when the pushes never got in (#2211).
 

+ 1 - 1
agent/probe/payload.go

@@ -95,7 +95,7 @@ type PayloadData struct {
 	// Read-only here. nil = this router reports no multi-WAN, which is also
 	// what an older agent sends.
 	MultiWan *MultiWanInfo `json:"multiWan,omitempty"`
-	// Workloads (#2227): the nested guests a hypervisor-class host runs —
+	// Workloads (#2227): the nested guests a hypervisor-class host runs -
 	// pods of an RKE2 node, VMs of a PVE box, containers of a Docker host.
 	// Census data for the unit's detail page, never graph nodes. nil = the
 	// probe failed this push (the server keeps the last good section); an

+ 3 - 3
agent/probe/workloads.go

@@ -1,12 +1,12 @@
-// workloads.go — la sección neutral `workloads` del payload (#2227): los
+// workloads.go - la sección neutral `workloads` del payload (#2227): los
 // huéspedes que corre un host clase hipervisor (pods de un nodo RKE2, VMs de
 // un PVE, contenedores de un Docker). Viaja como censo, no como base de
 // datos: el servidor guarda la sección tal cual y la expone en el detalle de
 // la unidad; NO añade clientes al grafo de topología.
 package probe
 
-// WorkloadItem es un huésped anidado. ID es un UID estable del workload —
-// nunca un índice de la lista — para que el servidor pueda seguir a un item
+// WorkloadItem es un huésped anidado. ID es un UID estable del workload -
+// nunca un índice de la lista - para que el servidor pueda seguir a un item
 // entre pushes aunque la fuente reordene. Kind/State crudos de la fuente
 // deben normalizarse a "unknown" por el productor, nunca viajar sin
 // normalizar.

+ 1 - 1
app/src/data/types.ts

@@ -547,7 +547,7 @@ export interface MultiWanInfo {
 }
 
 /** One nested guest of a hypervisor-class host (#2227). id is a stable
- *  workload UID — never a list index — so the row survives a reordering
+ *  workload UID - never a list index - so the row survives a reordering
  *  push. kind/state arrive normalized by the producer; unrecognized
  *  strings must render as unknown, never as running. */
 export interface WorkloadItem {

+ 1 - 1
app/src/pages/RouterDetail.tsx

@@ -254,7 +254,7 @@ export default function RouterDetail() {
       )}
 
       {/* Las cargas anidadas de un host clase hipervisor (#2227): el censo
-          que su pusher empuja, en el detalle — nunca clientes del grafo. */}
+          que su pusher empuja, en el detalle - nunca clientes del grafo. */}
       {detail?.workloads && <WorkloadsPanel info={detail.workloads} />}
 
       {/* ⑤⑥ Servicios + Puertos (gateway) / Radios + Puertos (APs) */}

+ 1 - 1
server-go/internal/adapters/agent_workloads_test.go

@@ -1,4 +1,4 @@
-// agent_workloads_test.go — #2227: la sección neutral `workloads` viaja en
+// agent_workloads_test.go - #2227: la sección neutral `workloads` viaja en
 // el payload del pusher y aterriza en el detalle de la unidad. Un host clase
 // hipervisor (nodo RKE2, caja PVE) declara aquí sus huéspedes anidados; el
 // servidor los guarda tal cual y NO los convierte en clientes del grafo.

+ 1 - 1
server-go/internal/adapters/types.go

@@ -814,7 +814,7 @@ type RouterDetail struct {
 	// and there is nothing to show, which is what removes the panel.
 	MultiWan *MultiWanInfo `json:"multiWan,omitempty"`
 	// Workloads (#2227): the nested guests a hypervisor-class host runs,
-	// straight from its pusher's `workloads` section — census for the
+	// straight from its pusher's `workloads` section - census for the
 	// detail page, never clients or graph nodes. nil = the unit never
 	// reported the section; an empty item list = it reported, and runs
 	// nothing.