k8s-pb
k8s-pb copied to clipboard
Support selecting API groups to build
Just an idea for https://github.com/Arnavion/k8s-openapi/issues/77. Finding the dependencies between modules should be possible because each package has imports (FileDescriptorProto has dependency field).
https://github.com/kube-rs/k8s-pb/blob/7b4bf26bebcaed0ee1ff5286ad8ba3747368b517/k8s-pb-codegen/protos/api/core/v1/generated.proto#L22-L28
We also don't need to worry about multiplying that by version features if we version this using Kubernetes version (#10).
A potential benefit here is that this could move us towards having a simpler dependency flow into kube as well (with a few exceptions)
kube-clientwould only need whatkube-corepulls in (discoverymod only needsapimachinery, but marker trait impls should possibly be done elsewhere - like in this repo)kube-corewould only needapimachinery(but slight quirk withadmissionfrom core)kube-deriveavoids it (as before)kube-runtimecan require a lot more, as we get more utils