emissary-ingress / emissary

open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
https://www.getambassador.io
Apache License 2.0
4.37k stars 685 forks source link

Ambassador filter plugin not working | Error loading shared library libresolv.so.2 in Go 1.20 #5461

Open MageshSrinivasulu opened 11 months ago

MageshSrinivasulu commented 11 months ago

We are building an ambassador filter plugin using GO https://www.getambassador.io/docs/edge-stack/latest/topics/using/filters/plugin and calling that within the ambassador pod.

Seems it is failing from GO 1.20 with the error Error loading shared library libresolv.so.2 previously it used to work with GO 1.19

How to overcome this issue? More details are available here https://github.com/golang/go/issues/59305

cindymullins-dw commented 11 months ago

It looks like users are getting around this by implementing their own symbolic link for libresolv.so.2. One of the disadvantages of a plug-in filter is the need to maintain all the relevant dependencies. Does that look like something you could try?

MageshSrinivasulu commented 11 months ago

@cindymullins-dw I tried that but it is not working