h3poteto / aws-global-accelerator-controller

A Kubernetes controller for Global Accelerators and Route53
Apache License 2.0
26 stars 8 forks source link

Too many Global Accelerators for ELB #158

Closed greatehop closed 5 months ago

greatehop commented 6 months ago

Hi

Helm chart version "0.7.1".

I have several GAs, only one of them was created by aws-global-accelerator-controller. There are errors at logs, like:

E0418 11:52:45.549632 1 route53.go:72] Too many Global Accelerators for test-alb-01234567890.us-east-1.elb.amazonaws.com

This error appears at logs ones a minute and does not create DNS record at Route53.

Reason:

By adding additional debug logs, I found that function "listAccelerator" returns list of GA with the same value:

I0418 11:55:47.092227 1 global_accelerator.go:618] Accelerators: [0xc000038990 0xc000038990]

The reason is the same address of the loop variable "accelerator". Similarly as it was discussed at this topic.

greatehop commented 6 months ago

Here PR that fix this issue.

greatehop commented 5 months ago

Thanks!