mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Disallow -v2-deprecation>'not-yet' combined with --enable-v2
This commit is contained in:
@@ -18,6 +18,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
cconfig "go.etcd.io/etcd/server/v3/config"
|
||||
"go.etcd.io/etcd/server/v3/embed"
|
||||
"golang.org/x/crypto/bcrypt"
|
||||
)
|
||||
@@ -124,8 +125,8 @@ Clustering:
|
||||
Interpret 'auto-compaction-retention' one of: periodic|revision. 'periodic' for duration based retention, defaulting to hours if no time unit is provided (e.g. '5m'). 'revision' for revision number based retention.
|
||||
--enable-v2 '` + strconv.FormatBool(embed.DefaultEnableV2) + `'
|
||||
Accept etcd V2 client requests. Deprecated and to be decommissioned in v3.6.
|
||||
--v2-deprecation '` + string(embed.V2_DEPR_DEFAULT) + `'
|
||||
Phase of v2store deprecation. Allows to optin for higher compatibility mode.
|
||||
--v2-deprecation '` + string(cconfig.V2_DEPR_DEFAULT) + `'
|
||||
Phase of v2store deprecation. Allows to opt-in for higher compatibility mode.
|
||||
Supported values:
|
||||
'not-yet' // Issues a warning if v2store have meaningful content (default in v3.5)
|
||||
'write-only' // Custom v2 state is not allowed (planned default in v3.6)
|
||||
|
||||
Reference in New Issue
Block a user