From 2d8cbe771cfe24edc602c9b95246c83638088282 Mon Sep 17 00:00:00 2001 From: Zachary Nixon Date: Thu, 31 Oct 2024 10:18:36 -0700 Subject: [PATCH] BUG FIX: fix log message when target group and cluster are in different VPCs (#3924) * BUG FIX: fix log message when target group and cluster are in different vpcs * bump go version --- .go-version | 2 +- pkg/targetgroupbinding/resource_manager.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.go-version b/.go-version index 87b26e8b1..229a27c6f 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.22.7 +1.22.8 diff --git a/pkg/targetgroupbinding/resource_manager.go b/pkg/targetgroupbinding/resource_manager.go index 78a664f0a..9056c3666 100644 --- a/pkg/targetgroupbinding/resource_manager.go +++ b/pkg/targetgroupbinding/resource_manager.go @@ -540,8 +540,8 @@ func (m *defaultResourceManager) registerPodEndpoints(ctx context.Context, tgARN // Target group is in a different VPC from the cluster's VPC if tgVpcID != "" && tgVpcID != m.vpcID { vpcID = tgVpcID - m.logger.Info("registering endpoints using the targetGroup's vpcID", tgVpcID, - "which is different from the cluster's vpcID", m.vpcID) + m.logger.Info("registering endpoints using the targetGroup's vpcID", "TG VPC", tgVpcID, + "cluster's vpcID", m.vpcID) } vpcInfo, err := m.vpcInfoProvider.FetchVPCInfo(ctx, vpcID) if err != nil {