mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-22 03:35:52 +00:00
60e649a456
The follow-up to8fb141c0a: deployment rows still showed dashes for the Disk I/O columns because `metricsFromKubernetesDeployment` populated NetIn/NetOut but not DiskRead/DiskWrite. Extend the synthetic generator to scale realistic read/write rates with the deployment's availability and replica count (read leads write slightly, both modulated by availability) so the canonical Disk I/O columns render alongside CPU / Memory / Disk / Network on every deployment row under mock mode. Real-mode behaviour stays unchanged (nil metrics until pod-metric aggregation lands). Live verification (`/api/resources?type=k8s-deployment`): metrics now carry cpu / memory / disk / netIn / netOut / diskRead / diskWrite for every deployment row. Tests: `go test ./internal/unifiedresources/...` green; existing `TestMetricsFromKubernetesDeployment_*` and `TestResourceFromKubernetesDeployment_*` continue to pass. Contract-neutral bypass: PULSE_ALLOW_CONTRACT_NEUTRAL_COMMIT set because this extends the existing synthetic K8s deployment metrics helper with two additional rate fields without changing any public contract shape, ownership, or boundary; the canonical helper position is already recorded in unified-resources.md from8fb141c0a.