OCPBUGS-42808: podman-etcd: add automatic learner member promotion (#2078)
- Refactor(podman-etcd): improve peer checking and leadership loss detection
The check_peers function is broken up into smaller, more manageable
functions. This refactoring separates the logic for detecting a loss of
cluster leadership from the logic for managing peer membership.
The main function is renamed to check_peer as there is only 1 peer to
check (it was check_peers).
- OCPBUGS-42808: podman-etcd: add automatic learner member promotion
Automatically promote etcd learner members to voting members when detected.
Includes refactored member management functions and improved validation.