Compare commits

...

6 Commits

Author SHA1 Message Date
Benjamin Pinchon 22635687f3
Merge b3001fd7c0 into e3d183b6a4 2025-07-31 09:38:20 +02:00
jiuker e3d183b6a4
bring more idempotent behavior to AbortMultipartUpload() (#21475)
VulnCheck / Analysis (push) Has been cancelled Details
fix #21456
2025-07-30 23:57:23 -07:00
Alex 752abc2e2c
Update console to v2.0.3 (#21474)
VulnCheck / Analysis (push) Waiting to run Details
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
2025-07-30 10:57:17 -07:00
Benjamin Pinchon b3001fd7c0
Merge branch 'master' into feat-pdb-minavailable 2025-07-03 14:28:54 +02:00
Benjamin Pinchon cf1535760e
Merge branch 'master' into feat-pdb-minavailable 2025-06-27 08:19:43 +02:00
Benjamin Pinchon de36046569 feat(helm): support minAvailable in podDisruptionBudget
Signed-off-by: Benjamin Pinchon <dev@mdfr.me>
2025-05-19 09:35:51 +02:00
5 changed files with 16 additions and 17 deletions

View File

@ -1509,17 +1509,10 @@ func (er erasureObjects) AbortMultipartUpload(ctx context.Context, bucket, objec
auditObjectErasureSet(ctx, "AbortMultipartUpload", object, &er)
}
// Validates if upload ID exists.
if _, _, err = er.checkUploadIDExists(ctx, bucket, object, uploadID, false); err != nil {
if errors.Is(err, errVolumeNotFound) {
return toObjectErr(err, bucket)
}
return toObjectErr(err, bucket, object, uploadID)
}
// Cleanup all uploaded parts.
er.deleteAll(ctx, minioMetaMultipartBucket, er.getUploadIDDir(bucket, object, uploadID))
defer er.deleteAll(ctx, minioMetaMultipartBucket, er.getUploadIDDir(bucket, object, uploadID))
// Successfully purged.
return nil
// Validates if upload ID exists.
_, _, err = er.checkUploadIDExists(ctx, bucket, object, uploadID, false)
return toObjectErr(err, bucket, object, uploadID)
}

2
go.mod
View File

@ -51,7 +51,7 @@ require (
github.com/lithammer/shortuuid/v4 v4.2.0
github.com/miekg/dns v1.1.65
github.com/minio/cli v1.24.2
github.com/minio/console v1.7.7-0.20250623221437-2595faf715ea
github.com/minio/console v1.7.7-0.20250729174702-3d6c4cbf4869
github.com/minio/csvparser v1.0.0
github.com/minio/dnscache v0.1.1
github.com/minio/dperf v0.6.3

4
go.sum
View File

@ -421,8 +421,8 @@ github.com/minio/cli v1.24.2 h1:J+fCUh9mhPLjN3Lj/YhklXvxj8mnyE/D6FpFduXJ2jg=
github.com/minio/cli v1.24.2/go.mod h1:bYxnK0uS629N3Bq+AOZZ+6lwF77Sodk4+UL9vNuXhOY=
github.com/minio/colorjson v1.0.8 h1:AS6gEQ1dTRYHmC4xuoodPDRILHP/9Wz5wYUGDQfPLpg=
github.com/minio/colorjson v1.0.8/go.mod h1:wrs39G/4kqNlGjwqHvPlAnXuc2tlPszo6JKdSBCLN8w=
github.com/minio/console v1.7.7-0.20250623221437-2595faf715ea h1:alek8HJEcLZBzlUiPf8dICAbx+B07TK6WITY2oZuJKY=
github.com/minio/console v1.7.7-0.20250623221437-2595faf715ea/go.mod h1:hKNkzdKBKU84w5wXqMnkH74QocJGHW2zjvFtuGETDsc=
github.com/minio/console v1.7.7-0.20250729174702-3d6c4cbf4869 h1:f8+TehcIhhDajRvSGb8NZhRqOhxChWcWWAzb52kjwIg=
github.com/minio/console v1.7.7-0.20250729174702-3d6c4cbf4869/go.mod h1:hKNkzdKBKU84w5wXqMnkH74QocJGHW2zjvFtuGETDsc=
github.com/minio/crc64nvme v1.0.1 h1:DHQPrYPdqK7jQG/Ls5CTBZWeex/2FMS3G5XGkycuFrY=
github.com/minio/crc64nvme v1.0.1/go.mod h1:eVfm2fAzLlxMdUGc0EEBGSMmPwmXD5XiNRpnu9J3bvg=
github.com/minio/csvparser v1.0.0 h1:xJEHcYK8ZAjeW4hNV9Zu30u+/2o4UyPnYgyjWp8b7ZU=

View File

@ -6,11 +6,16 @@ apiVersion: policy/v1
{{- end }}
kind: PodDisruptionBudget
metadata:
name: minio
name: {{ template "minio.fullname" . }}
labels:
app: {{ template "minio.name" . }}
spec:
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
{{- with .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
app: {{ template "minio.name" . }}

View File

@ -585,7 +585,8 @@ networkPolicy:
##
podDisruptionBudget:
enabled: false
maxUnavailable: 1
maxUnavailable: ~
minAvailable: ~
## Specify the service account to use for the MinIO pods. If 'create' is set to 'false'
## and 'name' is left unspecified, the account 'default' will be used.