Skip to content

Add Route to RouteTable using ACK runtime v0.15.2 #21

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

Merged
merged 17 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
ack_generate_info:
build_date: "2021-11-08T20:16:44Z"
build_hash: 6ce1a672eabd3908bdaa4ace356e1b58ee3e80ba
build_date: "2021-11-18T20:10:16Z"
build_hash: 966e9a9ac6dfb4bbc2d3ded1972ce2b706391d44
go_version: go1.17
version: v0.15.2
api_directory_checksum: 231335e65c729f31ac368b1483a38c2964b3219a
api_directory_checksum: 43cfac78c9b056059cb202c220f24ac4fb02477f
api_version: v1alpha1
aws_sdk_go_version: v1.37.10
generator_config_info:
file_checksum: 438c2600566029a9ab883076d641246f0a8fbb88
file_checksum: c2aa55a1129fa79f889cea05f77bc97ab4b70d89
original_file_name: generator.yaml
last_modification:
reason: API generation
12 changes: 6 additions & 6 deletions apis/v1alpha1/enums.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ ignore:
- ModifyVpcEndpoint
field_paths:
- CreateInternetGatewayInput.DryRun
- CreateRouteInput.DryRun
- CreateRouteInput.RouteTableId
- CreateRouteTableInput.DryRun
- CreateSecurityGroupInput.DryRun
- CreateSubnetInput.DryRun
- CreateTransitGatewayInput.DryRun
- CreateVpcInput.DryRun
- CreateVpcEndpointInput.DryRun
- DeleteRouteInput.DryRun
- DeleteRouteInput.RouteTableId
# support EC2-VPC only
- DeleteSecurityGroupInput.GroupName
resource_names:
Expand Down Expand Up @@ -86,6 +90,30 @@ resources:
terminal_codes:
- InvalidVpcID.Malformed
- InvalidVpcID.NotFound
- InvalidParameterValue
fields:
# RouteStatuses as Route to ensure
# fields set server-side (active, origin)
# are exposed in Status
RouteStatuses:
from:
operation: DescribeRouteTables
path: RouteTables.Routes
is_read_only: true
# Routes as CreateRouteInput to ensure only
# user-editable fields are exposed in Spec
Routes:
custom_field:
list_of: CreateRouteInput
hooks:
sdk_create_post_set_output:
template_path: hooks/route_table/sdk_create_post_set_output.go.tpl
sdk_read_many_post_set_output:
template_path: hooks/route_table/sdk_read_many_post_set_output.go.tpl
sdk_file_end:
template_path: hooks/route_table/sdk_file_end.go.tpl
update_operation:
custom_method_name: customUpdateRouteTable
SecurityGroup:
fields:
# support EC2-VPC only
Expand Down
7 changes: 4 additions & 3 deletions apis/v1alpha1/route_table.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 45 additions & 16 deletions apis/v1alpha1/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading