Skip to content

Commit

Permalink
Merge pull request #10201 from hakman/automated-cherry-pick-of-#10199…
Browse files Browse the repository at this point in the history
…-upstream-release-1.19

Automated cherry pick of #10199: Fix AWS NLB reconciliation
  • Loading branch information
k8s-ci-robot committed Nov 9, 2020
2 parents 203ee78 + 2534f73 commit 3ffd446
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
Expand Up @@ -803,7 +803,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
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 3ffd446

Please sign in to comment.