From 4a5e2194dfb856d0d70dfc6be60fcf8d2b2a3770 Mon Sep 17 00:00:00 2001 From: Steven Borrelli Date: Thu, 12 Dec 2024 17:02:18 +0000 Subject: [PATCH] add v1beta1 lateInit Signed-off-by: Steven Borrelli --- apis/ec2/v1beta1/zz_vpcendpoint_terraformed.go | 1 + config/ec2/config.go | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/ec2/v1beta1/zz_vpcendpoint_terraformed.go b/apis/ec2/v1beta1/zz_vpcendpoint_terraformed.go index 84cb42d177..90fd341b5c 100755 --- a/apis/ec2/v1beta1/zz_vpcendpoint_terraformed.go +++ b/apis/ec2/v1beta1/zz_vpcendpoint_terraformed.go @@ -118,6 +118,7 @@ func (tr *VPCEndpoint) LateInitialize(attrs []byte) (bool, error) { return false, errors.Wrap(err, "failed to unmarshal Terraform state parameters for late-initialization") } opts := []resource.GenericLateInitializerOption{resource.WithZeroValueJSONOmitEmptyFilter(resource.CNameWildcard)} + opts = append(opts, resource.WithNameFilter("SubnetConfiguration")) li := resource.NewGenericLateInitializer(opts...) return li.LateInitialize(&tr.Spec.ForProvider, params) diff --git a/config/ec2/config.go b/config/ec2/config.go index a15f70eb6d..e9c9eae023 100644 --- a/config/ec2/config.go +++ b/config/ec2/config.go @@ -154,8 +154,7 @@ func Configure(p *config.Provider) { //nolint:gocyclo // aws_vpc_endpoint_route_table_association // aws_vpc_endpoint_security_group_association r.LateInitializer = config.LateInitializer{ - // NOTE(muvaf): Conflicts with AvailabilityZone. See the following - // for more details: https://github.com/crossplane/upjet/issues/107 + // Conflicts with VPCEndpointSubnetAssociation IgnoredFields: []string{ "subnet_configuration", },