Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(runtime): include leases in runtime diagnostics
This change updates `Runtime::spawn_lease` (added in b26b009) to register leases with the admin server's diagnostics endpoint when the `runtime-diagnostics` feature is enabled: ```json { "initialTimestamp": "2025-01-04T19:28:33Z", "currentTimestamp": "2025-01-04T19:29:28Z", "leases": [ { "name": "foobar", "namespace": "default", "claimant": "code", "fieldManager": "kubert-examples", "leaseDurationSeconds": 30, "renewGracePeriodSeconds": 1, "updates": 2, "creationTimestamp": "2025-01-04T19:28:33Z", "lastUpdateTimestamp": "2025-01-04T19:29:24Z", "resourceVersion": "1822330", "current": { "holder": "code", "expiry": "2025-01-04T19:29:54.207379734Z" } } ] } ```
- Loading branch information