diag: correct the config key name in the events-check advice

The messages told users to enable edgeCore.reportEvent, but the key
lives under the edged section as edged.reportEvent. Searching for the
wrong key in edgecore.yaml would find nothing.
This commit is contained in:
lakshit verma 2026-08-08 00:58:30 +05:30
parent e0bc366525
commit 7b524cc47b
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ RuntimeClass Edge Diagnostics
[PASS] transport 1 RuntimeClass object(s) served by MetaServer (kata)
[FAIL] bridge class "kata" is in the local store but the kubelet-bridge lookup cannot resolve it (NotFound): edge bridge gap (NodeV1 not wired to metaclient)
[PASS] cri handler "kata" configured in containerd
[WARN] events reportEvent is false: pod failures may not surface as events. Enable edgeCore.reportEvent
[WARN] events reportEvent is false: pod failures may not surface as events. Enable edged.reportEvent
Result: 2 pass, 1 fail, 1 warn
```

View file

@ -208,9 +208,9 @@ func (d *Diag) CheckEvents() CheckResult {
return CheckResult{ID: "events", Status: StatusPass, Detail: "reportEvent is true; pod events are reported to the cloud"}
}
if !present {
return CheckResult{ID: "events", Status: StatusWarn, Detail: "edged.reportEvent is absent (defaults to false): pod failures may not surface as events. Enable edgeCore.reportEvent"}
return CheckResult{ID: "events", Status: StatusWarn, Detail: "edged.reportEvent is absent (defaults to false): pod failures may not surface as events. Enable edged.reportEvent"}
}
return CheckResult{ID: "events", Status: StatusWarn, Detail: "reportEvent is false: pod failures may not surface as events. Enable edgeCore.reportEvent"}
return CheckResult{ID: "events", Status: StatusWarn, Detail: "reportEvent is false: pod failures may not surface as events. Enable edged.reportEvent"}
}
// handlerFor maps a class name to its handler from the local store. Classes