etcd changed API version from v3alpha to v3beta, then v3, and because
of transition available api versions are different according to
the etcd server available.
This change implements the mechanism to detect the current api version
according to the etcd version obtained via the version API. Discovery
is executed at the first request and the result is stored.
Reviewed: https:/ /review. opendev. org/c/openstack /etcd3gw/ +/901244 /opendev. org/openstack/ etcd3gw/ commit/ e5faa53eada8b17 795b2e68fdffb22 6aaceb0f92
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit e5faa53eada8b17 795b2e68fdffb22 6aaceb0f92
Author: Takashi Kajinami <email address hidden>
Date: Fri Nov 17 22:53:59 2023 +0900
Discover API version automatically
etcd changed API version from v3alpha to v3beta, then v3, and because
of transition available api versions are different according to
the etcd server available.
This change implements the mechanism to detect the current api version
according to the etcd version obtained via the version API. Discovery
is executed at the first request and the result is stored.
Closes-Bug: #2043810 5d2b6e62f8f48af d78a116fbea
Change-Id: I08bc429dd8c59e