Skip to content

Commit 7a8d9aa

Browse files
committed
fix: s3 delete
1 parent 5715f7b commit 7a8d9aa

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed
30.1 KB
Binary file not shown.
30.2 KB
Binary file not shown.
30.1 KB
Binary file not shown.

docker/backup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,11 @@ def upload_s3(prefix):
236236

237237
# 删除旧的备份文件
238238
if keys_to_remove:
239-
client.delete_objects(
240-
Bucket=s3_bucket,
241-
Delete={"Objects": [{"Key": key} for key in keys_to_remove]},
242-
)
239+
for key in keys_to_remove:
240+
client.delete_object(
241+
Bucket=s3_bucket,
242+
Key=key,
243+
)
243244
print(f"Deleted s3 old backup files: {keys_to_remove}")
244245

245246

helm-chart/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 1.6.3
18+
version: 1.6.4
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "1.6.3"
24+
appVersion: "1.6.4"

helm-chart/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ backup:
6969
image:
7070
registry: ""
7171
repository: 36node/mongodb-backup
72-
tag: latest
72+
tag: 1.6.4
7373
digest: ""
7474
## Specify a imagePullPolicy
7575
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
@@ -134,7 +134,7 @@ restore:
134134
image:
135135
registry: ""
136136
repository: 36node/mongodb-backup
137-
tag: latest
137+
tag: 1.6.4
138138
digest: ""
139139
## Specify a imagePullPolicy
140140
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'

0 commit comments

Comments
 (0)