risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
611 stars 26 forks source link

Kubernetes package #123

Closed luisdavim closed 9 months ago

luisdavim commented 9 months ago

I think it would be interesting to have a k8s package to fetch objects from the API.

myzie commented 9 months ago

Hi @luisdavim, this would involve wrapping this repo, is that right? https://github.com/kubernetes/client-go

luisdavim commented 9 months ago

Yes, but I'd recommend using https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/client instead.

If I have some time today or the next weekend, I can give it a try and open a PR.

luisdavim commented 9 months ago

@myzie I've opened https://github.com/risor-io/risor/pull/129 it might still need some work but should be functional and I'd like your input on it.