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 29, 2024
1 parent f39cf2e commit f40f769
Show file tree
Hide file tree
Showing 8 changed files with 9,520 additions and 1 deletion.
9 changes: 9 additions & 0 deletions imageregistry/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ 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
// +openshift:enable:FeatureGate=ChunkSize
// +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
2,392 changes: 2,392 additions & 0 deletions imageregistry/v1/zz_generated.crd-manifests/00_configs-CustomNoUpgrade.crd.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
api.openshift.io/merged-by-featuregates: "true"
include.release.openshift.io/ibm-cloud-managed: "true"
include.release.openshift.io/self-managed-high-availability: "true"
release.openshift.io/feature-set: Default
name: configs.imageregistry.operator.openshift.io
spec:
group: imageregistry.operator.openshift.io
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ configs.imageregistry.operator.openshift.io:
CRDName: configs.imageregistry.operator.openshift.io
Capability: ""
Category: ""
FeatureGates: []
FeatureGates:
- ChunkSize
FilenameOperatorName: ""
FilenameOperatorOrdering: "00"
FilenameRunLevel: ""
Expand Down

Large diffs are not rendered by default.

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 f40f769

Please sign in to comment.