mirror of https://github.com/kubernetes/kops.git
Merge pull request #10199 from hakman/fix-nlb-reconciliation
Fix AWS NLB reconciliation
This commit is contained in:
commit
b91a40c52a
|
@ -803,7 +803,7 @@ func (e *AutoscalingGroup) getTGsToDetach(currentTGs []*TargetGroup) []*string {
|
||||||
|
|
||||||
for _, v := range currentTGs {
|
for _, v := range currentTGs {
|
||||||
if _, ok := desiredTGs[*v.ARN]; !ok {
|
if _, ok := desiredTGs[*v.ARN]; !ok {
|
||||||
tgsToDetach = append(tgsToDetach, v.Name)
|
tgsToDetach = append(tgsToDetach, v.ARN)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return tgsToDetach
|
return tgsToDetach
|
||||||
|
|
|
@ -92,6 +92,7 @@ func (e *TargetGroup) Find(c *fi.Context) (*TargetGroup, error) {
|
||||||
UnhealthyThreshold: tg.UnhealthyThresholdCount,
|
UnhealthyThreshold: tg.UnhealthyThresholdCount,
|
||||||
VPC: &VPC{ID: tg.VpcId},
|
VPC: &VPC{ID: tg.VpcId},
|
||||||
}
|
}
|
||||||
|
e.ARN = tg.TargetGroupArn
|
||||||
|
|
||||||
tagsResp, err := cloud.ELBV2().DescribeTags(&elbv2.DescribeTagsInput{
|
tagsResp, err := cloud.ELBV2().DescribeTags(&elbv2.DescribeTagsInput{
|
||||||
ResourceArns: []*string{tg.TargetGroupArn},
|
ResourceArns: []*string{tg.TargetGroupArn},
|
||||||
|
|
Loading…
Reference in New Issue