Skip to content

Commit c765ac5

Browse files
authored
add storagetype to customupdate, add terminal error (#212)
Description of changes: - add `storageType` to customUpdate - add terminal error, `storageType` can only be changed once in 30 days. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 47d181d commit c765ac5

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-03-07T22:57:51Z"
3-
build_hash: a326346bd3a6973254d247c9ab2dc76790c36241
2+
build_date: "2025-03-10T17:20:05Z"
3+
build_hash: 5645e51ed3c413f616e1b929f1527a5139c44198
44
go_version: go1.24.0
5-
version: v0.43.2
5+
version: v0.43.2-3-g5645e51
66
api_directory_checksum: 2960d5d47c03026d9207068e776eef99e09f798a
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: 1248c19ac7dda16a2611c7e967b547db2f540735
10+
file_checksum: a26cf64f154232a938a280a17dfc5219c2c75877
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ resources:
170170
- InvalidParameterCombination
171171
- InvalidSubnet
172172
- StorageQuotaExceeded
173+
- StorageTypeNotAvailableFault
173174
fields:
174175
DestinationRegion:
175176
set:

generator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ resources:
170170
- InvalidParameterCombination
171171
- InvalidSubnet
172172
- StorageQuotaExceeded
173+
- StorageTypeNotAvailableFault
173174
fields:
174175
DestinationRegion:
175176
set:

pkg/resource/db_cluster/custom_update.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,9 @@ func (rm *resourceManager) newCustomUpdateRequestPayload(
571571
if desired.ko.Spec.OptionGroupName != nil && delta.DifferentAt("Spec.OptionGroupName") {
572572
res.OptionGroupName = desired.ko.Spec.OptionGroupName
573573
}
574+
if desired.ko.Spec.StorageType != nil && delta.DifferentAt("Spec.StorageType") {
575+
res.StorageType = desired.ko.Spec.StorageType
576+
}
574577
if desired.ko.Spec.Port != nil && delta.DifferentAt("Spec.Port") {
575578
res.Port = aws.Int32(int32(*desired.ko.Spec.Port))
576579
}

pkg/resource/db_cluster/sdk.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)