Merge pull request #10199 from hakman/fix-nlb-reconciliation

Fix AWS NLB reconciliation
This commit is contained in:
Kubernetes Prow Robot 2020-11-08 10:43:37 -08:00 committed by GitHub
commit b91a40c52a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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},