chore(minio): changed lifecycle rules to support delete-jobs (#1235)
This commit is contained in:
parent
528d1af173
commit
52afb6e525
1 changed files with 21 additions and 8 deletions
|
|
@ -15,15 +15,28 @@ echo "Initializing minio"
|
|||
|
||||
cat <<EOF > /tmp/lifecycle.json
|
||||
{
|
||||
"Rules": [
|
||||
{
|
||||
"Expiration": {
|
||||
"Days": 180
|
||||
},
|
||||
"ID": "${bucket}",
|
||||
"Status": "Enabled"
|
||||
"Rules": [
|
||||
{
|
||||
"Expiration": {
|
||||
"Days": 180
|
||||
},
|
||||
"ID": "Delete old mob files",
|
||||
"Status": "Enabled"
|
||||
},
|
||||
{
|
||||
"Expiration": {
|
||||
"Days": 30
|
||||
},
|
||||
"ID": "Delete flagged mob files after 30 days",
|
||||
"Filter": {
|
||||
"Tag": {
|
||||
"Key": "to_delete_in_days",
|
||||
"Value": "30"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Status": "Enabled"
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue