Skip to content

Commit 3ffd446

Browse files
authored
Merge pull request #10201 from hakman/automated-cherry-pick-of-#10199-upstream-release-1.19
Automated cherry pick of #10199: Fix AWS NLB reconciliation
2 parents 203ee78 + 2534f73 commit 3ffd446

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

upup/pkg/fi/cloudup/awstasks/autoscalinggroup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ func (e *AutoscalingGroup) getTGsToDetach(currentTGs []*TargetGroup) []*string {
803803

804804
for _, v := range currentTGs {
805805
if _, ok := desiredTGs[*v.ARN]; !ok {
806-
tgsToDetach = append(tgsToDetach, v.Name)
806+
tgsToDetach = append(tgsToDetach, v.ARN)
807807
}
808808
}
809809
return tgsToDetach

upup/pkg/fi/cloudup/awstasks/targetgroup.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ func (e *TargetGroup) Find(c *fi.Context) (*TargetGroup, error) {
9292
UnhealthyThreshold: tg.UnhealthyThresholdCount,
9393
VPC: &VPC{ID: tg.VpcId},
9494
}
95+
e.ARN = tg.TargetGroupArn
9596

9697
tagsResp, err := cloud.ELBV2().DescribeTags(&elbv2.DescribeTagsInput{
9798
ResourceArns: []*string{tg.TargetGroupArn},

0 commit comments

Comments
 (0)