Skip to content

Commit 5952153

Browse files
Merge pull request #1074 from deepsm007/fix_validation
IR-471: Adding additional validation
2 parents f95b26f + a18fed2 commit 5952153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storage/s3/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (d *driver) ConfigEnv() (envs envvar.List, err error) {
419419
return
420420
}
421421

422-
if currentFeatureGates.Enabled(util.ChunkSizeMiBFeatureGateName) && d.Config.ChunkSizeMiB > 0 {
422+
if currentFeatureGates.Enabled(util.ChunkSizeMiBFeatureGateName) && d.Config.ChunkSizeMiB > 4 && d.Config.ChunkSizeMiB < 5121 {
423423
chunksize := int64(d.Config.ChunkSizeMiB) * 1024 * 1024
424424
envs = append(envs, envvar.EnvVar{Name: "REGISTRY_STORAGE_S3_CHUNKSIZE", Value: chunksize})
425425
}

0 commit comments

Comments
 (0)