-
Notifications
You must be signed in to change notification settings - Fork 55
feat(VPCPeeringConnection): add support for custom resource and additional fields for Modify OP and auto-accepting #158
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
Changes from all commits
85b8617
48ded5e
4594210
65c3264
3a4a63a
8d856fe
105ccb8
3d5e0b1
24593e9
897cc60
c4894db
e2231ea
6504f06
b449477
40fabaa
ec07451
759cada
2a75419
4b778f2
1d5812e
12600c8
297094a
cadbb8f
345ac30
44f4d0a
e6b6ac2
5c33cd9
f8c178a
dcd4030
28dc1d0
8c1c293
ded39f8
cdba287
270dfdf
9b49874
e8fe1f8
7b2d6a9
04a3906
757c040
8c18167
56f6a93
06247da
a762939
5264895
3a881f0
19bac00
879ae48
2fcdcaa
5c1e2ec
fc5e9db
8c4666b
b7fff4c
5ef2799
e75dacb
e8d6d62
d7968f1
267616e
3cc4fe1
c818fb1
57f3247
751129a
b38de92
35de436
b9daf27
2a580cf
3ea113c
11dfb81
2273bcb
4f9c6e8
700190c
4c0237e
8eba9eb
356edc3
1467e63
cbe35e2
7f229ff
e06c288
25b747b
8814b72
2d4b385
4d5dda5
f9239e3
a691534
e199fa0
10c8788
7c15f83
261e377
763ed6a
ee7e00f
573e376
713983e
4ea23d6
7b9ee7a
a6c9c89
a52503e
e578a27
63d9922
12e6477
39988ba
6b353d1
99e7a26
38ae6a3
649d8cf
e004634
2b66c6c
622ad14
b77e731
c23a6b3
2caff1b
dd742c6
177f13e
65b1017
292ef31
5c7339f
0ee68e2
5eb98b2
d8c6506
425bd4c
4cc5e5f
cd7b39b
68c2c01
6cf590c
c9fc4f9
d45f9ab
f95e77e
48d826f
c5bd091
24a7f77
0d5b492
8032a14
0ad7fe9
f927281
af8b8d4
7b82a32
a4a5503
ae17780
85344da
9c15021
c3cdc92
ac3ae16
1ca36fa
13b6c99
93672e2
ea4ece1
f1a287c
7555073
e39923c
dbcc6d3
387df36
8ecbef3
f82d396
7ad0bb1
74903cf
4917256
a2840f9
ee5348b
7dabd9f
d01e72c
a7f85be
fb17d5c
80b44a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
ack_generate_info: | ||
build_date: "2023-09-18T23:03:44Z" | ||
build_hash: 892f29d00a4c4ad21a2fa32919921de18190979d | ||
go_version: go1.20.3 | ||
version: v0.27.1 | ||
api_directory_checksum: 6e2d850d97f2f72db31c9bef522eca4ab95b3fcd | ||
build_date: "2023-12-06T21:00:34Z" | ||
build_hash: 1cc9b5172d3d1676af578a3411e8672698ec29ce | ||
go_version: go1.21.0 | ||
version: 1cc9b51 | ||
api_directory_checksum: d452bf19bfd1496aacdc215bf7cc9ea86c55c122 | ||
api_version: v1alpha1 | ||
aws_sdk_go_version: v1.44.93 | ||
generator_config_info: | ||
file_checksum: c474e6cdec9622afad4b4cef415483a7bd0eda41 | ||
file_checksum: 86b3e3aa1ff4769894d475244d0cc5902bcb258f | ||
original_file_name: generator.yaml | ||
last_modification: | ||
reason: API generation |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,8 @@ ignore: | |
- CreateVpcEndpointInput.DryRun | ||
- CreateVpcEndpointInput.TagSpecifications | ||
- CreateVpcEndpointInput.ClientToken | ||
- CreateVpcPeeringConnectionInput.DryRun | ||
- CreateVpcPeeringConnectionInput.TagSpecifications | ||
- DeleteRouteInput.DryRun | ||
- DeleteRouteInput.RouteTableId | ||
# support EC2-VPC only | ||
|
@@ -122,7 +124,7 @@ ignore: | |
#- VpcEndpoint | ||
#- Vpc | ||
- VpcCidrBlock | ||
- VpcPeeringConnection | ||
#- VpcPeeringConnection | ||
- VpnConnectionRoute | ||
- VpnConnection | ||
- VpnGateway | ||
|
@@ -184,6 +186,10 @@ operations: | |
operation_type: | ||
- Delete | ||
resource_name: Instance | ||
ModifyVpcPeeringConnectionOptions: | ||
operation_type: | ||
- Update | ||
resource_name: VpcPeeringConnection | ||
resources: | ||
DhcpOptions: | ||
exceptions: | ||
|
@@ -468,6 +474,10 @@ resources: | |
references: | ||
resource: VPCEndpoint | ||
path: Status.VPCEndpointID | ||
Routes.VPCPeeringConnectionID: | ||
references: | ||
resource: VPCPeeringConnection | ||
path: Status.VPCPeeringConnectionID | ||
hooks: | ||
delta_pre_compare: | ||
code: customPreCompare(delta, a, b) | ||
|
@@ -779,5 +789,45 @@ resources: | |
sdk_file_end: | ||
template_path: hooks/vpc_endpoint/sdk_file_end.go.tpl | ||
update_operation: | ||
custom_method_name: customUpdateVPCEndpoint | ||
|
||
custom_method_name: customUpdateVPCEndpoint | ||
VpcPeeringConnection: | ||
fields: | ||
VpcId: | ||
references: | ||
resource: VPC | ||
path: Status.VPCID | ||
peerVpcId: | ||
references: | ||
resource: VPC | ||
path: Status.VPCID | ||
AcceptRequest: | ||
type: bool | ||
AccepterPeeringConnectionOptions: | ||
from: | ||
operation: ModifyVpcPeeringConnectionOptions | ||
path: AccepterPeeringConnectionOptions | ||
RequesterPeeringConnectionOptions: | ||
from: | ||
operation: ModifyVpcPeeringConnectionOptions | ||
path: RequesterPeeringConnectionOptions | ||
Comment on lines
+805
to
+812
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Adds 2 fields to the CRD that are useful to the VPC Peering Connection's |
||
Tags: | ||
from: | ||
operation: CreateTags | ||
path: Tags | ||
compare: | ||
is_ignored: True | ||
update_operation: | ||
omit_unchanged_fields: true | ||
hooks: | ||
delta_pre_compare: | ||
code: compareTags(delta, a, b) | ||
sdk_create_post_build_request: | ||
template_path: hooks/vpc_peering_connection/sdk_create_post_build_request.go.tpl | ||
sdk_create_post_set_output: | ||
template_path: hooks/vpc_peering_connection/sdk_create_post_set_output.go.tpl | ||
sdk_update_pre_build_request: | ||
template_path: hooks/vpc_peering_connection/sdk_update_pre_build_request.go.tpl | ||
sdk_read_many_post_set_output: | ||
template_path: hooks/vpc_peering_connection/sdk_read_many_post_set_output.go.tpl | ||
sdk_file_end: | ||
template_path: hooks/vpc_peering_connection/sdk_file_end.go.tpl |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allows the
vpcId
andpeerVpcId
fields to be replaced withvpcRef
andpeerVpcRef
fields.