Skip to content

Commit f3bbc9e

Browse files
authored
add DBClusterParameterGroup resource (#17)
Adds support for the DBClusterParameterGroup resource, which is the RDS/Aurora parameter group. Issue aws-controllers-k8s/community#853 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 28aa346 commit f3bbc9e

30 files changed

+1873
-28
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
ack_generate_info:
2-
build_date: "2021-06-24T17:43:34Z"
3-
build_hash: 9c35918f8a98b41ada10cb3aa460dbf463428463
2+
build_date: "2021-07-05T16:07:02Z"
3+
build_hash: 6017295ba34a54966646eac360c7d808ed4b6bf1
44
go_version: go1.15.5 linux/amd64
5-
version: v0.2.3
6-
api_directory_checksum: ec40eefbbffe8eee0df8213e5f22379c9c418356
5+
version: v0.4.0
6+
api_directory_checksum: 2159e3b5ae30722e85747b7b3c146a4e5daefb78
77
api_version: v1alpha1
88
aws_sdk_go_version: ""
99
generator_config_info:
10-
file_checksum: 5ddce72d775b70b6729448b6494cd8f71f71667a
10+
file_checksum: 39e5c7eb8d1a39ab0a1c27e9185f412972ce84be
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation
14-
timestamp: 2021-06-24 17:43:36.954980364 +0000 UTC
14+
timestamp: 2021-07-05 16:07:08.348205607 +0000 UTC

apis/v1alpha1/db_cluster_parameter_group.go

Lines changed: 95 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: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
ignore:
2+
resource_names:
3+
- CustomAvailabilityZone
4+
#- DBCluster
5+
- DBClusterEndpoint
6+
#- DBClusterParameterGroup
7+
- DBClusterSnapshot
8+
#- DBInstance
9+
- DBInstanceReadReplica
10+
#- DBParameterGroup
11+
- DBProxy
12+
- DBProxyEndpoint
13+
#- DBSecurityGroup
14+
- DBSnapshot
15+
#- DBSubnetGroup
16+
- EventSubscription
17+
- GlobalCluster
18+
- OptionGroup
19+
field_paths:
20+
operations:
21+
DeleteDBCluster:
22+
override_values:
23+
# Clearly this is not ideal, but will suffice until we add custom hook
24+
# points to the build_request methods to enable a genmeration of the
25+
# final snapshot identifier to use.
26+
SkipFinalSnapshot: true
27+
DeleteDBInstance:
28+
override_values:
29+
# Clearly this is not ideal, but will suffice until we add custom hook
30+
# points to the build_request methods to enable a genmeration of the
31+
# final snapshot identifier to use.
32+
SkipFinalSnapshot: true
33+
DescribeDBInstances:
34+
primary_identifier_field_name: DBInstanceIdentifier
35+
DescribeDBClusters:
36+
primary_identifier_field_name: DBClusterIdentifier
37+
resources:
38+
DBCluster:
39+
hooks:
40+
sdk_update_pre_build_request:
41+
template_path: hooks/db_cluster/sdk_update_pre_build_request.go.tpl
42+
sdk_delete_pre_build_request:
43+
template_path: hooks/db_cluster/sdk_delete_pre_build_request.go.tpl
44+
exceptions:
45+
terminal_codes:
46+
- DBClusterQuotaExceededFault
47+
- DBParameterGroupNotFound
48+
- DBSubnetGroupNotFoundFault
49+
- DBSubnetGroupDoesNotCoverEnoughAZs
50+
- DomainNotFoundFault
51+
- InsufficientStorageClusterCapacity
52+
- InvalidParameter
53+
- InvalidParameterValue
54+
- InvalidParameterCombination
55+
- InvalidDBClusterStateFault
56+
- InvalidDBInstanceStateFault
57+
- InvalidSubnet
58+
- InvalidVPCNetworkStateFault
59+
- KMSKeyNotAccessibleFault
60+
- StorageQuotaExceeded
61+
fields:
62+
MasterUserPassword:
63+
is_secret: true
64+
DBClusterParameterGroup:
65+
renames:
66+
operations:
67+
DescribeDBClusterParameterGroups:
68+
input_fields:
69+
DBClusterParameterGroupName: Name
70+
CreateDBClusterParameterGroup:
71+
input_fields:
72+
DBClusterParameterGroupName: Name
73+
DBParameterGroupFamily: Family
74+
DeleteDBClusterParameterGroup:
75+
input_fields:
76+
DBClusterParameterGroupName: Name
77+
fields:
78+
Parameters:
79+
from:
80+
operation: ModifyDBClusterParameterGroup
81+
path: Parameters
82+
DBInstance:
83+
hooks:
84+
sdk_update_pre_build_request:
85+
template_path: hooks/db_instance/sdk_update_pre_build_request.go.tpl
86+
sdk_delete_pre_build_request:
87+
template_path: hooks/db_instance/sdk_delete_pre_build_request.go.tpl
88+
renames:
89+
operations:
90+
CreateDBInstance:
91+
input_fields:
92+
# The data type of the create input and create output shape of the
93+
# DBSecurityGroups field is different which causes errors when
94+
# compiling
95+
DBSecurityGroups: DBSecurityGroupNames
96+
exceptions:
97+
terminal_codes:
98+
- InvalidParameter
99+
- InvalidParameterValue
100+
- InvalidParameterCombination
101+
- InvalidDBInstanceState
102+
- DBSecurityGroupNotFound
103+
- DBSubnetGroupNotFoundFault
104+
- DBParameterGroupNotFound
105+
fields:
106+
MasterUserPassword:
107+
is_secret: true
108+
DBParameterGroup:
109+
renames:
110+
operations:
111+
DescribeDBParameterGroups:
112+
input_fields:
113+
DBParameterGroupName: Name
114+
CreateDBParameterGroup:
115+
input_fields:
116+
DBParameterGroupName: Name
117+
DBParameterGroupFamily: Family
118+
DeleteDBParameterGroup:
119+
input_fields:
120+
DBParameterGroupName: Name
121+
fields:
122+
Parameters:
123+
from:
124+
operation: ModifyDBParameterGroup
125+
path: Parameters
126+
DBSecurityGroup:
127+
renames:
128+
operations:
129+
DescribeDBSecurityGroups:
130+
input_fields:
131+
DBSecurityGroupName: Name
132+
CreateDBSecurityGroup:
133+
input_fields:
134+
DBSecurityGroupName: Name
135+
DBSecurityGroupDescription: Description
136+
DeleteDBSecurityGroup:
137+
input_fields:
138+
DBSecurityGroupName: Name
139+
DBSubnetGroup:
140+
renames:
141+
operations:
142+
DescribeDBSubnetGroups:
143+
input_fields:
144+
DBSubnetGroupName: Name
145+
CreateDBSubnetGroup:
146+
input_fields:
147+
DBSubnetGroupName: Name
148+
DBSubnetGroupDescription: Description
149+
DeleteDBSubnetGroup:
150+
input_fields:
151+
DBSubnetGroupName: Name

apis/v1alpha1/types.go

Lines changed: 1 addition & 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)