Skip to content

Commit 4027a39

Browse files
authored
Ignore ModifyVpcEndpoint in generator (#16)
Issue #, if available: N/A Description of changes: * Ignores `ModifyVpcEndpoint` operation for now and back out generated code until there's bandwidth to deep dive and test * Ignore dry run field in Internet Gateway-- should've been done before * Minor test refactor: move ec2 client to `conftest` for ez sharing By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent f7055d8 commit 4027a39

16 files changed

+36
-128
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
ack_generate_info:
2-
build_date: "2021-10-08T20:55:38Z"
3-
build_hash: 4b30ff5578e2f570d1c5b1741f3098be0d78e246
2+
build_date: "2021-10-18T19:14:45Z"
3+
build_hash: 21ee1672e2c1556fd5784a22bc48aa619975cc6f
44
go_version: go1.17
55
version: v0.15.1
6-
api_directory_checksum: e860f6435d7aa89d9171eb1e0e42d969a9cd4d84
6+
api_directory_checksum: 0f150b1176d3ba9246acb726466358f2877b24a8
77
api_version: v1alpha1
88
aws_sdk_go_version: v1.37.10
99
generator_config_info:
10-
file_checksum: 45f149e5444111a0e7a0a159b47c1ae38adfb0a6
10+
file_checksum: af6d95e7cd2066fe11752abd324daf8e051be09f
1111
original_file_name: generator.yaml
1212
last_modification:
1313
reason: API generation

apis/v1alpha1/generator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
ignore:
2+
operations:
3+
- ModifyVpcEndpoint
24
field_paths:
35
- CreateVpcEndpointInput.DryRun
46
- CreateVpcInput.DryRun
57
- CreateSubnetInput.DryRun
68
- CreateRouteTableInput.DryRun
9+
- CreateInternetGatewayInput.DryRun
710
resource_names:
811
- AccountAttribute
912
- CapacityReservation

apis/v1alpha1/internet_gateway.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/ec2.services.k8s.aws_internetgateways.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ spec:
3737
description: "InternetGatewaySpec defines the desired state of InternetGateway.
3838
\n Describes an internet gateway."
3939
properties:
40-
dryRun:
41-
description: Checks whether you have the required permissions for
42-
the action, without actually making the request, and provides an
43-
error response. If you have the required permissions, the error
44-
response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
45-
type: boolean
4640
tagSpecifications:
4741
description: The tags to assign to the internet gateway.
4842
items:

generator.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
ignore:
2+
operations:
3+
- ModifyVpcEndpoint
24
field_paths:
35
- CreateVpcEndpointInput.DryRun
46
- CreateVpcInput.DryRun
57
- CreateSubnetInput.DryRun
68
- CreateRouteTableInput.DryRun
9+
- CreateInternetGatewayInput.DryRun
710
resource_names:
811
- AccountAttribute
912
- CapacityReservation

helm/crds/ec2.services.k8s.aws_internetgateways.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@ spec:
3737
description: "InternetGatewaySpec defines the desired state of InternetGateway.
3838
\n Describes an internet gateway."
3939
properties:
40-
dryRun:
41-
description: Checks whether you have the required permissions for
42-
the action, without actually making the request, and provides an
43-
error response. If you have the required permissions, the error
44-
response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
45-
type: boolean
4640
tagSpecifications:
4741
description: The tags to assign to the internet gateway.
4842
items:

pkg/resource/internet_gateway/delta.go

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/resource/internet_gateway/sdk.go

Lines changed: 17 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/resource/vpc_endpoint/sdk.go

Lines changed: 3 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)