Skip to content

Commit

Permalink
Expose chunkzie variable for S3 storage driver
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsm007 committed Apr 22, 2024
1 parent f39cf2e commit d8b5d7b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions imageregistry/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ type ImageRegistryConfigStorageS3 struct {
// Optional, defaults based on the Region that is provided.
// +optional
RegionEndpoint string `json:"regionEndpoint,omitempty"`
// chunkSizeMiB defines the size of the multipart upload chunks of the S3 API.
// The S3 API requires multipart upload chunks to be at least 5MB.
// +kubebuilder:validation:Minimum=5
// +kubebuilder:validation:Maximum=5120
// +optional
ChunkSizeMiB int64 `json:"chunkSizeMiB,omitempty"`
// encrypt specifies whether the registry stores the image in encrypted
// format or not.
// Optional, defaults to false.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,14 @@ spec:
store the registry's data. Optional, will be generated if
not provided.
type: string
chunkSizeMiB:
description: chunkSizeMiB defines the size of the multipart
upload chunks of the S3 API. The S3 API requires multipart
upload chunks to be at least 5MB.
format: int64
maximum: 5120
minimum: 5
type: integer
cloudFront:
description: cloudFront configures Amazon Cloudfront as the
storage middleware in a registry.
Expand Down Expand Up @@ -2208,6 +2216,14 @@ spec:
store the registry's data. Optional, will be generated if
not provided.
type: string
chunkSizeMiB:
description: chunkSizeMiB defines the size of the multipart
upload chunks of the S3 API. The S3 API requires multipart
upload chunks to be at least 5MB.
format: int64
maximum: 5120
minimum: 5
type: integer
cloudFront:
description: cloudFront configures Amazon Cloudfront as the
storage middleware in a registry.
Expand Down
1 change: 1 addition & 0 deletions imageregistry/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8b5d7b

Please sign in to comment.