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 23, 2024
1 parent f39cf2e commit 8bef434
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
8 changes: 8 additions & 0 deletions imageregistry/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,14 @@ 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 5MiB.
// When omitted, this means no opinion and the platform is left to choose a reasonable default, which is subject to change over time.
// The current default value is 10 MiB.
// +kubebuilder:validation:Minimum=5
// +kubebuilder:validation:Maximum=5120
// +optional
ChunkSizeMiB int32 `json:"chunkSizeMiB,omitempty"`
// encrypt specifies whether the registry stores the image in encrypted
// format or not.
// Optional, defaults to false.
Expand Down
22 changes: 22 additions & 0 deletions imageregistry/v1/zz_generated.crd-manifests/00_configs.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,17 @@ 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 5MiB. When omitted, this means
no opinion and the platform is left to choose a reasonable
default, which is subject to change over time. The current
default value is 10 MiB.
format: int32
maximum: 5120
minimum: 5
type: integer
cloudFront:
description: cloudFront configures Amazon Cloudfront as the
storage middleware in a registry.
Expand Down Expand Up @@ -2224,6 +2235,17 @@ 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 5MiB. When omitted, this means
no opinion and the platform is left to choose a reasonable
default, which is subject to change over time. The current
default value is 10 MiB.
format: int32
maximum: 5120
minimum: 5
type: integer
cloudFront:
description: cloudFront configures Amazon Cloudfront as the
storage middleware in a registry.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1504,6 +1504,17 @@ 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 5MiB. When omitted, this means
no opinion and the platform is left to choose a reasonable
default, which is subject to change over time. The current
default value is 10 MiB.
format: int32
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 +2219,17 @@ 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 5MiB. When omitted, this means
no opinion and the platform is left to choose a reasonable
default, which is subject to change over time. The current
default value is 10 MiB.
format: int32
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 8bef434

Please sign in to comment.