From 194d21c6a35775c6a13d576d349967b5c7477251 Mon Sep 17 00:00:00 2001 From: Nolan Brubaker Date: Tue, 14 Nov 2017 14:39:54 -0500 Subject: [PATCH] Update default TTL to 30 days Signed-off-by: Nolan Brubaker --- docs/cli-reference/ark_backup_create.md | 2 +- docs/cli-reference/ark_create_backup.md | 2 +- docs/cli-reference/ark_create_schedule.md | 2 +- docs/cli-reference/ark_schedule_create.md | 2 +- docs/use-cases.md | 2 +- pkg/cmd/cli/backup/create.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/cli-reference/ark_backup_create.md b/docs/cli-reference/ark_backup_create.md index d9568c80c..473be03fa 100644 --- a/docs/cli-reference/ark_backup_create.md +++ b/docs/cli-reference/ark_backup_create.md @@ -26,7 +26,7 @@ ark backup create NAME [flags] -l, --selector labelSelector only back up resources matching this label selector (default ) --show-labels show labels in the last column --snapshot-volumes optionalBool[=true] take snapshots of PersistentVolumes as part of the backup - --ttl duration how long before the backup can be garbage collected (default 24h0m0s) + --ttl duration how long before the backup can be garbage collected (default 720h0m0s) ``` ### Options inherited from parent commands diff --git a/docs/cli-reference/ark_create_backup.md b/docs/cli-reference/ark_create_backup.md index 592be219a..d997e5eda 100644 --- a/docs/cli-reference/ark_create_backup.md +++ b/docs/cli-reference/ark_create_backup.md @@ -26,7 +26,7 @@ ark create backup NAME [flags] -l, --selector labelSelector only back up resources matching this label selector (default ) --show-labels show labels in the last column --snapshot-volumes optionalBool[=true] take snapshots of PersistentVolumes as part of the backup - --ttl duration how long before the backup can be garbage collected (default 24h0m0s) + --ttl duration how long before the backup can be garbage collected (default 720h0m0s) ``` ### Options inherited from parent commands diff --git a/docs/cli-reference/ark_create_schedule.md b/docs/cli-reference/ark_create_schedule.md index f9911e334..eb4aa84be 100644 --- a/docs/cli-reference/ark_create_schedule.md +++ b/docs/cli-reference/ark_create_schedule.md @@ -27,7 +27,7 @@ ark create schedule NAME [flags] -l, --selector labelSelector only back up resources matching this label selector (default ) --show-labels show labels in the last column --snapshot-volumes optionalBool[=true] take snapshots of PersistentVolumes as part of the backup - --ttl duration how long before the backup can be garbage collected (default 24h0m0s) + --ttl duration how long before the backup can be garbage collected (default 720h0m0s) ``` ### Options inherited from parent commands diff --git a/docs/cli-reference/ark_schedule_create.md b/docs/cli-reference/ark_schedule_create.md index 4548e71b0..d5b896498 100644 --- a/docs/cli-reference/ark_schedule_create.md +++ b/docs/cli-reference/ark_schedule_create.md @@ -27,7 +27,7 @@ ark schedule create NAME [flags] -l, --selector labelSelector only back up resources matching this label selector (default ) --show-labels show labels in the last column --snapshot-volumes optionalBool[=true] take snapshots of PersistentVolumes as part of the backup - --ttl duration how long before the backup can be garbage collected (default 24h0m0s) + --ttl duration how long before the backup can be garbage collected (default 720h0m0s) ``` ### Options inherited from parent commands diff --git a/docs/use-cases.md b/docs/use-cases.md index 7cb59ff90..92e709d67 100644 --- a/docs/use-cases.md +++ b/docs/use-cases.md @@ -37,7 +37,7 @@ Heptio Ark can help you port your resources from one cluster to another, as long ``` ark backup create ``` - The default TTL is 24 hours; you can use the `--ttl` flag to change this as necessary. + The default TTL is 30 days (720 hours); you can use the `--ttl` flag to change this as necessary. 2. *(Cluster 2)* Make sure that the `persistentVolumeProvider` and `backupStorageProvider` fields in the Ark Config match the ones from *Cluster 1*, so that your new Ark server instance is pointing to the same bucket. diff --git a/pkg/cmd/cli/backup/create.go b/pkg/cmd/cli/backup/create.go index 25933d64b..7a5a5cfa4 100644 --- a/pkg/cmd/cli/backup/create.go +++ b/pkg/cmd/cli/backup/create.go @@ -68,7 +68,7 @@ type CreateOptions struct { func NewCreateOptions() *CreateOptions { return &CreateOptions{ - TTL: 24 * time.Hour, + TTL: 30 * 24 * time.Hour, IncludeNamespaces: flag.NewStringArray("*"), Labels: flag.NewMap(), SnapshotVolumes: flag.NewOptionalBool(nil),