Skip to content

Commit

Permalink
Adding Route table (#6)
Browse files Browse the repository at this point in the history
Issue #, if available: [#489](aws-controllers-k8s/community#489)

Description of changes:
* adds route table resource
* refactors e2e tests to share common resources (i.e. VPC)
  * otherwise, vpcs would need to be created for each test which is inefficient and may exceed quota
  * now, only 2 vpcs are created per test run
  * could not use `@pytest.fixture(scope="session")` on vpc because we use [pytest-xdist](pytest-dev/pytest-xdist#271)
* adds route table tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
brycahta committed Sep 8, 2021
1 parent 4db795a commit aba499a
Show file tree
Hide file tree
Showing 32 changed files with 2,485 additions and 156 deletions.
10 changes: 5 additions & 5 deletions apis/v1alpha1/ack-generate-metadata.yaml
@@ -1,14 +1,14 @@
ack_generate_info:
build_date: "2021-09-01T18:32:41Z"
build_hash: 6f22b7b568e25b4ee007bb1ab5f9338c16daf172
build_date: "2021-09-02T21:26:56Z"
build_hash: d20cb4f8170e3bae0af2783f1cccbcd98c868b52
go_version: go1.17 darwin/amd64
version: v0.13.0
api_directory_checksum: ae8b61e0359ce7d3f8795b243537b07c43e2609e
api_directory_checksum: 5c310ddd87ebed17d437af5c8a17cad97d2fd083
api_version: v1alpha1
aws_sdk_go_version: v1.37.10
generator_config_info:
file_checksum: d37d8e26f07ea82e6ce896adffc138034078c1e1
file_checksum: 61ae549a230a8641ecc9edec1eec8c0bcde87b83
original_file_name: generator.yaml
last_modification:
reason: API generation
timestamp: 2021-09-01 18:32:53.713542 +0000 UTC
timestamp: 2021-09-02 21:27:04.884645 +0000 UTC
8 changes: 7 additions & 1 deletion apis/v1alpha1/generator.yaml
Expand Up @@ -2,6 +2,7 @@ ignore:
field_paths:
- CreateVpcInput.DryRun
- CreateSubnetInput.DryRun
- CreateRouteTableInput.DryRun
resource_names:
- AccountAttribute
- CapacityReservation
Expand Down Expand Up @@ -32,7 +33,7 @@ ignore:
- NetworkInterface
- PlacementGroup
- ReservedInstancesListing
- RouteTable
#- RouteTable
- Route
- SecurityGroup
- Snapshot
Expand Down Expand Up @@ -64,6 +65,11 @@ ignore:

resources:
Subnet:
exceptions:
terminal_codes:
- InvalidVpcID.Malformed
- InvalidVpcID.NotFound
RouteTable:
exceptions:
terminal_codes:
- InvalidVpcID.Malformed
Expand Down
87 changes: 87 additions & 0 deletions apis/v1alpha1/route_table.go

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

43 changes: 27 additions & 16 deletions apis/v1alpha1/types.go

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

0 comments on commit aba499a

Please sign in to comment.