mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Signed-off-by: dereknola <derek.nola@suse.com>
This commit is contained in:
parent
944ea312be
commit
50fb1ce065
@ -11,6 +11,7 @@ const EtcdSnapshotCommand = "etcd-snapshot"
|
||||
|
||||
var EtcdSnapshotFlags = []cli.Flag{
|
||||
DebugFlag,
|
||||
ConfigFlag,
|
||||
LogFile,
|
||||
AlsoLogToStderr,
|
||||
cli.StringFlag{
|
||||
@ -25,7 +26,7 @@ var EtcdSnapshotFlags = []cli.Flag{
|
||||
Destination: &ServerConfig.DataDir,
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "name,etcd-snapshot-name",
|
||||
Name: "name",
|
||||
Usage: "(db) Set the base name of the etcd on-demand snapshot (appended with UNIX timestamp).",
|
||||
Destination: &ServerConfig.EtcdSnapshotName,
|
||||
Value: "on-demand",
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
func MustParse(args []string) []string {
|
||||
parser := &Parser{
|
||||
After: []string{"server", "agent"},
|
||||
After: []string{"server", "agent", "etcd-snapshot"},
|
||||
FlagNames: []string{"--config", "-c"},
|
||||
EnvName: version.ProgramUpper + "_CONFIG_FILE",
|
||||
DefaultConfig: "/etc/rancher/" + version.Program + "/config.yaml",
|
||||
|
Loading…
Reference in New Issue
Block a user