Skip to content

Commit 611e955

Browse files
authored
feat: new resource for DBClusterEndpoint (#218)
Issue [#854](aws-controllers-k8s/community#854) Description of changes: The Amazon RDS [DBClusterEndpoint](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBClusterEndpoint.html) resource represents the RDS Aurora Serverless API's command-line/configuration options for DB clusters. - [x] generator config file to un-ignore DBClusterEndpoint resource - [x] generate RDS service controller with support for the DBClusterEndpoint resource - [x] e2e python test for CRUD operations for a DBClusterEndpoint By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent ff73be1 commit 611e955

32 files changed

+2912
-15
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2025-04-11T18:51:18Z"
2+
build_date: "2025-04-25T05:50:00Z"
33
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
44
go_version: go1.24.1
55
version: v0.44.0-3-g0909e7f
6-
api_directory_checksum: 2960d5d47c03026d9207068e776eef99e09f798a
6+
api_directory_checksum: 52968d74358773de28be65be320d1bfb9c91e0bf
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.32.6
99
generator_config_info:
10-
file_checksum: a26cf64f154232a938a280a17dfc5219c2c75877
10+
file_checksum: ced2b68c703e2daf7b04da8f84f6ad6c95114fb9
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/db_cluster_endpoint.go

Lines changed: 109 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: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ignore:
44
- CustomAvailabilityZone
55
- CustomDBEngineVersion
66
#- DBCluster
7-
- DBClusterEndpoint
7+
# - DBClusterEndpoint
88
#- DBClusterParameterGroup
99
# DBClusterSnapshot
1010
#- DBInstance
@@ -99,6 +99,9 @@ ignore:
9999
- CreateGlobalClusterOutput.GlobalCluster.TagList
100100
- CreateGlobalClusterOutput.GlobalCluster.FailoverState.IsDataLossAllowed
101101
- GlobalClusterMember.SynchronizationStatus
102+
- CreateDBClusterEndpointOutput.EndpointType
103+
- ModifyDBClusterEndpointOutput.EndpointType
104+
- DBClusterEndpoint.EndpointType
102105
operations:
103106
ModifyDBCluster:
104107
override_values:
@@ -578,3 +581,36 @@ resources:
578581
template_path: hooks/db_cluster_snapshot/sdk_read_many_post_set_output.go.tpl
579582
update_operation:
580583
custom_method_name: customUpdateDBClusterSnapshot
584+
DBClusterEndpoint:
585+
renames:
586+
operations:
587+
CreateDBClusterEndpoint:
588+
output_fields:
589+
CustomEndpointType: EndpointType
590+
DescribeDBClusterEndpoints:
591+
output_fields:
592+
CustomEndpointType: EndpointType
593+
ModifyDBClusterEndpoint:
594+
output_fields:
595+
CustomEndpointType: EndpointType
596+
fields:
597+
# i would rename this to Name, or ID..probably name makes more sense since it's in
598+
# the spec...but i also want to keep the standard we have..
599+
# any thoughts?
600+
DBClusterEndpointIdentifier:
601+
is_primary_key: true
602+
DBClusterIdentifier:
603+
references:
604+
resource: DBCluster
605+
path: Spec.DBClusterIdentifier
606+
Tags:
607+
compare:
608+
# We have a custom comparison function...
609+
is_ignored: true
610+
hooks:
611+
sdk_read_many_post_set_output:
612+
template_path: hooks/db_cluster_endpoint/sdk_read_many_post_set_output.go.tpl
613+
sdk_update_pre_set_output:
614+
template_path: hooks/db_cluster_endpoint/sdk_update_pre_set_output.go.tpl
615+
delta_pre_compare:
616+
template_path: hooks/db_cluster_endpoint/delta_pre_compare.go.tpl

apis/v1alpha1/types.go

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

0 commit comments

Comments
 (0)