Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestUpgradeBetweenVersions ¶
TestUpgradeBetweenVersions runs a mock-up of the etcd upgrade process used by planet and triggered by gravity on a multi-node cluster. The overall upgrade process is described by gravity here: https://github.com/gravitational/gravity/blob/ddcf66dbb599138cc79fc1b9be427d706c6c8fb8/lib/update/cluster/phases/etcd.go
The specific items this test is meant to validate are: - Watches - watches rely on the revision for tracking changes, so the upgrade process needs to preserve the revision - Internals - To maintain the revision, we have to internally change the etcd database, so test for stability
Note - Only watches against etcd v3 are being fixed, etcd v2 clients need to be restarted when doing an upgrade as in the future, all etcd clients will be upgraded to v3, or we'll use the v2 API emulation with the v3 datastore which as of Jan 2020 is experimental.
Types ¶
This section is empty.