etcd

package
v0.0.35-0...-fad7822 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestUpgradeBetweenVersions

func TestUpgradeBetweenVersions(from, to string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL