You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/etcdmain/config.go
+9-7
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ var (
60
60
deprecatedFlags=map[string]string{
61
61
// TODO: remove in 3.7.
62
62
"snapshot-count": "--snapshot-count is deprecated in 3.6 and will be decommissioned in 3.7.",
63
+
"v2-deprecation": "--v2-deprecation is deprecated and scheduled for removal in v3.8. The default value is enforced, ignoring user input.",
63
64
}
64
65
)
65
66
@@ -74,9 +75,11 @@ type config struct {
74
75
75
76
// configFlags has the set of flags used for command line parsing a Config
76
77
typeconfigFlagsstruct {
77
-
flagSet*flag.FlagSet
78
-
clusterState*flags.SelectiveStringValue
79
-
fallback*flags.SelectiveStringValue
78
+
flagSet*flag.FlagSet
79
+
clusterState*flags.SelectiveStringValue
80
+
fallback*flags.SelectiveStringValue
81
+
// Deprecated and scheduled for removal in v3.8. The default value is enforced, ignoring user input.
82
+
// TODO: remove in v3.8.
80
83
v2deprecation*flags.SelectiveStringsValue
81
84
}
82
85
@@ -108,7 +111,7 @@ func newConfig() *config {
108
111
fs.StringVar(&cfg.configFile, "config-file", "", "Path to the server configuration file. Note that if a configuration file is provided, other command line flags and environment variables will be ignored.")
109
112
fs.Var(cfg.cf.fallback, "discovery-fallback", fmt.Sprintf("Valid values include %q", cfg.cf.fallback.Valids()))
110
113
fs.Var(cfg.cf.clusterState, "initial-cluster-state", "Initial cluster state ('new' when bootstrapping a new cluster or 'existing' when adding new members to an existing cluster). After successful initialization (bootstrapping or adding), flag is ignored on restarts.")
fs.Var(cfg.cf.v2deprecation, "v2-deprecation", fmt.Sprintf("v2store deprecation stage: %q. Deprecated and scheduled for removal in v3.8. The default value is enforced, ignoring user input.", cfg.cf.v2deprecation.Valids()))
112
115
113
116
fs.BoolVar(&cfg.printVersion, "version", false, "Print the version and exit.")
Copy file name to clipboardExpand all lines: server/etcdmain/help.go
+4-4
Original file line number
Diff line number
Diff line change
@@ -169,12 +169,12 @@ Clustering:
169
169
--auto-compaction-mode 'periodic'
170
170
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.
0 commit comments