Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(s3): Add missing GLACIER_IR storage type in replication and lifecycle Configuration types #2125

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apis/s3/v1beta1/lifecycleConfiguration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ type NoncurrentVersionExpiration struct {
}

// NoncurrentVersionTransition contains the transition rule that describes when noncurrent objects
// transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER,
// transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, GLACIER_IR
// or DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or versioning
// is suspended), you can set this action to request that Amazon S3 transition
// noncurrent object versions to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING,
Expand All @@ -164,8 +164,8 @@ type NoncurrentVersionTransition struct {
NoncurrentDays int32 `json:"noncurrentDays,omitempty"`

// The class of storage used to store the object.
// Valid values are: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
// +kubebuilder:validation:Enum=GLACIER;STANDARD_IA;ONEZONE_IA;INTELLIGENT_TIERING;DEEP_ARCHIVE
// Valid values are: GLACIER, GLACIER_IR, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
// +kubebuilder:validation:Enum=GLACIER;GLACIER_IR;STANDARD_IA;ONEZONE_IA;INTELLIGENT_TIERING;DEEP_ARCHIVE
StorageClass string `json:"storageClass"`
}

Expand All @@ -184,7 +184,7 @@ type Transition struct {
Days int32 `json:"days,omitempty"`

// The storage class to which you want the object to transition.
// Valid values are: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
// +kubebuilder:validation:Enum=GLACIER;STANDARD_IA;ONEZONE_IA;INTELLIGENT_TIERING;DEEP_ARCHIVE
// Valid values are: GLACIER, GLACIER_IR, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
// +kubebuilder:validation:Enum=GLACIER;GLACIER_IR;STANDARD_IA;ONEZONE_IA;INTELLIGENT_TIERING;DEEP_ARCHIVE
StorageClass string `json:"storageClass"`
}
2 changes: 1 addition & 1 deletion apis/s3/v1beta1/replicationConfiguration_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ type Destination struct {
// For valid values, see the StorageClass element of the PUT Bucket replication
// (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTreplication.html)
// action in the Amazon Simple Storage Service API Reference.
// +kubebuilder:validation:Enum=STANDARD;GLACIER;STANDARD_IA;ONEZONE_IA;INTELLIGENT_TIERING;DEEP_ARCHIVE
// +kubebuilder:validation:Enum=STANDARD;GLACIER;GLACIER_IR;STANDARD_IA;ONEZONE_IA;INTELLIGENT_TIERING;DEEP_ARCHIVE
// +optional
StorageClass *string `json:"storageClass"`
}
Expand Down
9 changes: 6 additions & 3 deletions package/crds/s3.aws.crossplane.io_buckets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ spec:
items:
description: |-
NoncurrentVersionTransition contains the transition rule that describes when noncurrent objects
transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER,
transition to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, GLACIER, GLACIER_IR
or DEEP_ARCHIVE storage class. If your bucket is versioning-enabled (or versioning
is suspended), you can set this action to request that Amazon S3 transition
noncurrent object versions to the STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING,
Expand All @@ -352,9 +352,10 @@ spec:
storageClass:
description: |-
The class of storage used to store the object.
Valid values are: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
Valid values are: GLACIER, GLACIER_IR, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
enum:
- GLACIER
- GLACIER_IR
- STANDARD_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
Expand Down Expand Up @@ -401,9 +402,10 @@ spec:
storageClass:
description: |-
The storage class to which you want the object to transition.
Valid values are: GLACIER, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
Valid values are: GLACIER, GLACIER_IR, STANDARD_IA, ONEZONE_IA, INTELLIGENT_TIERING, DEEP_ARCHIVE
enum:
- GLACIER
- GLACIER_IR
- STANDARD_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
Expand Down Expand Up @@ -2046,6 +2048,7 @@ spec:
enum:
- STANDARD
- GLACIER
- GLACIER_IR
- STANDARD_IA
- ONEZONE_IA
- INTELLIGENT_TIERING
Expand Down