Skip to content

add vpcid during adoption #261

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
Apr 21, 2025
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
6 changes: 3 additions & 3 deletions apis/v1alpha1/ack-generate-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ack_generate_info:
build_date: "2025-04-02T20:13:02Z"
build_hash: 980cb1e4734f673d16101cf55206b84ca639ec01
build_date: "2025-04-14T02:36:47Z"
build_hash: 0909e7f0adb8ffe4120a8c20d5d58b991f2539e9
go_version: go1.24.1
version: v0.44.0
version: v0.44.0-3-g0909e7f
api_directory_checksum: 5e4731f8ab6fa4bafdb863edf0e678e604697103
api_version: v1alpha1
aws_sdk_go_version: v1.32.6
Expand Down
6 changes: 6 additions & 0 deletions pkg/resource/vpc_peering_connection/sdk.go

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

// This prevents reference resolution errors when adopting existing resources where these fields are not provided in the manifest.
if ko.Spec.VPCID == nil && ko.Status.RequesterVPCInfo != nil && ko.Status.RequesterVPCInfo.VPCID != nil {
ko.Spec.VPCID = ko.Status.RequesterVPCInfo.VPCID
}

if r.ko.Spec.AccepterPeeringConnectionOptions != nil {
f0 := &svcapitypes.PeeringConnectionOptionsRequest{}
Expand Down Expand Up @@ -39,4 +43,4 @@
res.ko.Spec.AcceptRequest = aws.Bool(true)
} else if isVPCPeeringConnectionCreating(res) {
return res, requeueWaitWhileCreating
}
}