Skip to content

Commit

Permalink
Fix AWS NLB reconciliation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Nov 9, 2020
1 parent cfa3bcc commit 2534f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion upup/pkg/fi/cloudup/awstasks/autoscalinggroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ func (e *AutoscalingGroup) getTGsToDetach(currentTGs []*TargetGroup) []*string {

for _, v := range currentTGs {
if _, ok := desiredTGs[*v.ARN]; !ok {
tgsToDetach = append(tgsToDetach, v.Name)
tgsToDetach = append(tgsToDetach, v.ARN)
}
}
return tgsToDetach
Expand Down
1 change: 1 addition & 0 deletions upup/pkg/fi/cloudup/awstasks/targetgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (e *TargetGroup) Find(c *fi.Context) (*TargetGroup, error) {
UnhealthyThreshold: tg.UnhealthyThresholdCount,
VPC: &VPC{ID: tg.VpcId},
}
e.ARN = tg.TargetGroupArn

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

0 comments on commit 2534f73

Please sign in to comment.