Skip to content

late init VPCEndpoint.PolicyDocument field #47

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 1 commit into from
Mar 30, 2022
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
10 changes: 5 additions & 5 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: "2022-03-29T17:33:11Z"
build_hash: 6f659f796434e8fd6443c0b3a5b495daae910035
go_version: go1.17.8
version: v0.18.0
build_date: "2022-03-30T20:36:15Z"
build_hash: c6b852a8017aa73cfc5a882b1ba60c88d820e967
go_version: go1.17
version: v0.18.1
api_directory_checksum: e5bf2003f6be051fdeda5059df47eb7fff0a9c86
api_version: v1alpha1
aws_sdk_go_version: v1.42.0
generator_config_info:
file_checksum: c041dcc9493bdd9baed2e0599d8bc4401b5f2d25
file_checksum: e017fb539a06710c6713157e5f61e2a0c20e70ba
original_file_name: generator.yaml
last_modification:
reason: API generation
2 changes: 2 additions & 0 deletions apis/v1alpha1/generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ resources:
template_path: hooks/vpc/sdk_read_many_post_set_output.go.tpl
VpcEndpoint:
fields:
PolicyDocument:
late_initialize: {}
VpcId:
references:
resource: VPC
Expand Down
2 changes: 2 additions & 0 deletions generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ resources:
template_path: hooks/vpc/sdk_read_many_post_set_output.go.tpl
VpcEndpoint:
fields:
PolicyDocument:
late_initialize: {}
VpcId:
references:
resource: VPC
Expand Down
13 changes: 11 additions & 2 deletions pkg/resource/vpc_endpoint/manager.go

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

1 change: 1 addition & 0 deletions test/e2e/tests/test_references.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def test_references(self, ec2_client):
assert k8s.wait_on_condition(vpc_ref, "ACK.ResourceSynced", "True", wait_periods=5)
assert k8s.wait_on_condition(sg_ref, "ACK.ResourceSynced", "True", wait_periods=5)
assert k8s.wait_on_condition(subnet_ref, "ACK.ResourceSynced", "True", wait_periods=5)
assert k8s.wait_on_condition(vpc_endpoint_ref, "ACK.ResourceSynced", "True", wait_periods=5)

assert k8s.wait_on_condition(sg_ref, "ACK.ReferencesResolved", "True", wait_periods=5)
assert k8s.wait_on_condition(subnet_ref, "ACK.ReferencesResolved", "True", wait_periods=5)
Expand Down