mirror of
https://github.com/minio/docs.git
synced 2025-07-28 19:42:10 +03:00
Specify RFC3339 and not ISO-8601 data and time (#1419)
MinIO uses RFC3339 data and time formatting and not ISO-8601. RFC3339 requires that there be a `T` as part of the data and time separation. ISO-8601 allows a space. The documentation also currently refers to using a date in the batch framework; this should be a RFC3339 date and time. e.g. ``` mc batch start play expire.yaml mc: <ERROR> Unable to start job. We encountered an internal error, please try again.: cause(parsing time "2006-01-02 15:04:05.00Z" as "2006-01-02T15:04:05Z07:00": cannot parse " 15:04:05.00Z" as "T"). ``` --------- Co-authored-by: Ravind Kumar <ravindk89@gmail.com>
This commit is contained in:
@ -6,7 +6,7 @@ expire:
|
||||
- type: object # objects with zero ore more older versions
|
||||
name: NAME # match object names that satisfy the wildcard expression.
|
||||
olderThan: 70h # match objects older than this value
|
||||
createdBefore: "2006-01-02T15:04:05.00Z" # match objects created before "date"
|
||||
createdBefore: "2006-01-02T15:04:05.00Z" # match objects created before this date and time in RFC3339 format
|
||||
tags:
|
||||
- key: name
|
||||
value: pick* # match objects with tag 'name', all values starting with 'pick'
|
||||
@ -23,7 +23,7 @@ expire:
|
||||
- type: deleted # objects with delete marker as their latest version
|
||||
name: NAME # match object names that satisfy the wildcard expression.
|
||||
olderThan: 10h # match objects older than this value (e.g. 7d10h31s)
|
||||
createdBefore: "2006-01-02T15:04:05.00Z" # match objects created before "date"
|
||||
createdBefore: "2006-01-02T15:04:05.00Z" # match objects created before this date and time in RFC3339 format
|
||||
purge:
|
||||
# retainVersions: 0 # (default) delete all versions of the object. This option is the fastest.
|
||||
# retainVersions: 5 # keep the latest 5 versions of the object including delete markers.
|
||||
|
@ -13,8 +13,8 @@ keyrotate:
|
||||
filter:
|
||||
newerThan: "7d" # match objects newer than this value (e.g. 7d10h31s)
|
||||
olderThan: "7d" # match objects older than this value (e.g. 7d10h31s)
|
||||
createdAfter: "date" # match objects created after "date"
|
||||
createdBefore: "date" # match objects created before "date"
|
||||
createdAfter: "date" # match objects created after this date and time in RFC3339 format
|
||||
createdBefore: "date" # match objects created before this date and time in RFC3339 format
|
||||
tags:
|
||||
- key: "name"
|
||||
value: "pick*" # match objects with tag 'name', with all values starting with 'pick'
|
||||
|
@ -44,8 +44,8 @@ replicate:
|
||||
filter:
|
||||
newerThan: "7d" # match objects newer than this value (e.g. 7d10h31s)
|
||||
olderThan: "7d" # match objects older than this value (e.g. 7d10h31s)
|
||||
createdAfter: "date" # match objects created after "date"
|
||||
createdBefore: "date" # match objects created before "date"
|
||||
createdAfter: "datetime" # match objects created after this date and time in RFC3339 format
|
||||
createdBefore: "datetime" # match objects created before this date and time in RFC3339 format
|
||||
|
||||
## NOTE: tags are not supported when "source" is remote.
|
||||
# tags:
|
||||
|
Reference in New Issue
Block a user