Commit Graph

2 Commits

Author SHA1 Message Date
Ville Vesilehto
8c2cfb01e3 plugin/etcd: fix import order for ttl test (#7515) 2025-09-05 11:45:30 -07:00
Ville Vesilehto
e1768a5d27 Merge commit from fork
Instead of casting lease ID to uint32, fix the TTL() function
to use etcd time-to-live API for determining TTL. Add configurable
min-lease-ttl and max-lease-ttl options to prevent extreme TTL
values. By default, lease records now go through bounds checking
with 30s to 1d as the min/max.

Added unit tests for validation and docs.

Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
2025-09-04 17:14:27 -07:00