mirror of https://github.com/k3s-io/k3s
set duration to second (#4231)
parent
0452f017c1
commit
e11a4bf8bb
|
@ -1,6 +1,8 @@
|
|||
package cmds
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/rancher/k3s/pkg/version"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
@ -84,9 +86,9 @@ var EtcdSnapshotFlags = []cli.Flag{
|
|||
},
|
||||
&cli.DurationFlag{
|
||||
Name: "s3-timeout,etcd-s3-timeout",
|
||||
Usage: "(db) S3 timeout in seconds",
|
||||
Usage: "(db) S3 timeout",
|
||||
Destination: &ServerConfig.EtcdS3Timeout,
|
||||
Value: 30,
|
||||
Value: 30 * time.Second,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -341,9 +341,9 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
|
|||
},
|
||||
&cli.DurationFlag{
|
||||
Name: "etcd-s3-timeout",
|
||||
Usage: "(db) S3 timeout in seconds",
|
||||
Usage: "(db) S3 timeout",
|
||||
Destination: &ServerConfig.EtcdS3Timeout,
|
||||
Value: 30,
|
||||
Value: 30 * time.Second,
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "default-local-storage-path",
|
||||
|
|
Loading…
Reference in New Issue