crutonjohn / external-dns-opnsense-webhook

ExternalDNS webhook to manage OPNsense Unbound DNS records
Apache License 2.0
4 stars 2 forks source link

Memory Leak #15

Open crutonjohn opened 1 week ago

crutonjohn commented 1 week ago

There is a memory leak somewhere that I need to track down. It presents after running for a while if you don't have resource limits applied to the pod.

external-dns-opnsense-7b47b8c54c-d8b77         1m           1189Mi

definitely don't need to be using over a gig of memory 😅

crutonjohn commented 1 week ago

i think it could be in this function:

https://github.com/crutonjohn/external-dns-opnsense-webhook/blob/main/internal/opnsense-unbound/client.go#L183-L202