Fix default-backup-ttl not work

Signed-off-by: Ming <mqiu@vmware.com>
This commit is contained in:
Ming
2022-04-14 15:06:06 +08:00
parent 9f83fc57c9
commit c17172f4ef
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
Fix default-backup-ttl not work
-3
View File
@@ -41,8 +41,6 @@ import (
"github.com/vmware-tanzu/velero/pkg/util/collections"
)
const DefaultBackupTTL time.Duration = 30 * 24 * time.Hour
func NewCreateCommand(f client.Factory, use string) *cobra.Command {
o := NewCreateOptions()
@@ -106,7 +104,6 @@ type CreateOptions struct {
func NewCreateOptions() *CreateOptions {
return &CreateOptions{
TTL: DefaultBackupTTL,
IncludeNamespaces: flag.NewStringArray("*"),
Labels: flag.NewMap(),
SnapshotVolumes: flag.NewOptionalBool(nil),