Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update doc to mention 1mo=31d and 1y=366d
Signed-off-by: iTrooz <hey@itrooz.fr>
  • Loading branch information
iTrooz committed Oct 26, 2025
commit b3e07441b37d62b3ce2f617f02e8ba2cf1e8ffa6
2 changes: 1 addition & 1 deletion config/crd/v1/bases/velero.io_backups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ spec:
TTL is a time.Duration-compatible string describing how long
the Backup should be retained for.
Supports time.Duration units + day (d), week (w), month (mo), and year (y).
Note that days, months, and years are static durations: 1d = 24h, 1mo = 30d, 1y = 365d.
Note that days, months, and years are static durations: 1d = 24h, 1mo = 31d, 1y = 366d.
type: string
uploaderConfig:
description: UploaderConfig specifies the configuration for the uploader.
Expand Down
2 changes: 1 addition & 1 deletion config/crd/v1/bases/velero.io_schedules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ spec:
TTL is a time.Duration-compatible string describing how long
the Backup should be retained for.
Supports time.Duration units + day (d), week (w), month (mo), and year (y).
Note that days, months, and years are static durations: 1d = 24h, 1mo = 30d, 1y = 365d.
Note that days, months, and years are static durations: 1d = 24h, 1mo = 31d, 1y = 366d.
type: string
uploaderConfig:
description: UploaderConfig specifies the configuration for the
Expand Down
4 changes: 2 additions & 2 deletions config/crd/v1/crds/crds.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/apis/velero/v1/backup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type BackupSpec struct {
// TTL is a time.Duration-compatible string describing how long
// the Backup should be retained for.
// Supports time.Duration units + day (d), week (w), month (mo), and year (y).
// Note that days, months, and years are static durations: 1d = 24h, 1mo = 30d, 1y = 365d.
// Note that days, months, and years are static durations: 1d = 24h, 1mo = 31d, 1y = 366d.
// +optional
TTL metav1.Duration `json:"ttl,omitempty"`

Expand Down
Loading