Skip to content

Commit 6f19c7e

Browse files
authored
MemoryDB Cluster resource support (#17)
Support for MDB cluster resource. - Ensure that we invoke update API if there delta - Scale up before scale in, Scale out before scale down - Use annotation to rollback in case of async failures - E2E tests to cover Create/Update/Rollback - TerminalConditions for User errors - Wait for delete to be completed - Perform engineversion upgrade and scale up/down whenever possible By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 98d4224 commit 6f19c7e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+5084
-80
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: "2022-04-05T22:03:34Z"
2+
build_date: "2022-04-06T19:12:56Z"
33
build_hash: fc5620cf5fde243ee5124324d26bb7e952049bf2
4-
go_version: go1.17.5
4+
go_version: go1.17.6
55
version: v0.18.3
6-
api_directory_checksum: 03f48590b53448f0765761ebb30f727e5226b189
6+
api_directory_checksum: c2f6d6769a7f620358ba97b8b9c3ef8c80934448
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.42.29
99
generator_config_info:
10-
file_checksum: e6e93d091c257dcd8fefac407cf8507adf59d906
10+
file_checksum: 2a0a05a38b0ccfb3d749097e815c4533ba9ec868
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/cluster.go

Lines changed: 165 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/generator.yaml

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,69 @@
11
ignore:
22
resource_names:
33
- Snapshot
4-
- Cluster
54
resources:
5+
Cluster:
6+
exceptions:
7+
errors:
8+
404:
9+
code: ClusterNotFoundFault
10+
terminal_codes:
11+
- ClusterAlreadyExistsFault
12+
- ClusterQuotaForCustomerExceededFault
13+
- NodeQuotaForClusterExceededFault
14+
- NodeQuotaForCustomerExceededFault
15+
- InsufficientClusterCapacityFault
16+
- ShardsPerClusterQuotaExceededFault
17+
- InvalidParameterValueException
18+
- InvalidParameterCombinationException
19+
- TagQuotaPerResourceExceeded
20+
- NoOperationFault
21+
renames:
22+
operations:
23+
CreateCluster:
24+
input_fields:
25+
ClusterName: Name
26+
UpdateCluster:
27+
input_fields:
28+
ClusterName: Name
29+
DeleteCluster:
30+
input_fields:
31+
ClusterName: Name
32+
DescribeClusters:
33+
input_fields:
34+
ClusterName: Name
35+
fields:
36+
AllowedScaleUpNodeTypes:
37+
is_read_only: true
38+
from:
39+
operation: ListAllowedNodeTypeUpdates
40+
path: ScaleUpNodeTypes
41+
AllowedScaleDownNodeTypes:
42+
is_read_only: true
43+
from:
44+
operation: ListAllowedNodeTypeUpdates
45+
path: ScaleDownNodeTypes
46+
hooks:
47+
sdk_read_many_post_set_output:
48+
template_path: hooks/cluster/sdk_read_many_post_set_output.go.tpl
49+
sdk_create_post_set_output:
50+
template_path: hooks/cluster/sdk_create_many_post_set_output.go.tpl
51+
sdk_update_post_set_output:
52+
template_path: hooks/cluster/sdk_update_many_post_set_output.go.tpl
53+
sdk_update_post_build_request:
54+
template_path: hooks/cluster/sdk_update_post_build_request.go.tpl
55+
sdk_update_pre_build_request:
56+
template_path: hooks/cluster/sdk_update_pre_build_request.go.tpl
57+
sdk_delete_post_request:
58+
template_path: hooks/cluster/sdk_delete_post_request.go.tpl
59+
sdk_delete_pre_build_request:
60+
template_path: hooks/cluster/sdk_delete_pre_build_request.go.tpl
61+
synced:
62+
when:
63+
- path: Status.Status
64+
in:
65+
- available
66+
- create-failed
667
SubnetGroup:
768
exceptions:
869
errors:
@@ -172,3 +233,7 @@ resources:
172233
DescribeParameterGroups:
173234
input_fields:
174235
ParameterGroupName: Name
236+
operations:
237+
DescribeClusters:
238+
override_values:
239+
ShowShardDetails: true

0 commit comments

Comments
 (0)