Skip to content

Commit

Permalink
BUG FIX: fix log message when target group and cluster are in differe…
Browse files Browse the repository at this point in the history
…nt VPCs (kubernetes-sigs#3924)

* BUG FIX: fix log message when target group and cluster are in different vpcs

* bump go version
  • Loading branch information
zac-nixon authored Oct 31, 2024
1 parent e96c227 commit 2d8cbe7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.22.7
1.22.8
4 changes: 2 additions & 2 deletions pkg/targetgroupbinding/resource_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2d8cbe7

Please sign in to comment.