kubernetes-client / c

Official C client library for Kubernetes
Apache License 2.0
141 stars 45 forks source link

Feature request, add lua support #147

Closed dxlr8r closed 1 year ago

dxlr8r commented 1 year ago

As described in: http://www.lua.org/pil/26.html

for a C function to be called from Lua, we must register it, that is, we must give its address to Lua in an appropriate way.

It would require some work to add the boilerplate for all relevant functions, but once that is done it seems like the result would be that we can add lua to the list of client libraries.

brendandburns commented 1 year ago

Most of the code in this library is generated. I don't think it makes sense to add generic lua support to that C language generator.

I think there are two options:

Let us know if there are questions or you decide to pursue either option.

dxlr8r commented 1 year ago

Thank you for a good answer. I am doubtful I will pursue the options though, on the account of lack of know how and resources.

brendandburns commented 1 year ago

fwiw, I also did a quick search and found this: https://luarocks.org/modules/f4z3r/luakube

I have no idea if it is any good...

Closing this issue since I don't think there's anything else to do here.