Support selecting API groups to build
kazk opened this issue · comments
Kaz Yoshihara commented
Just an idea for Arnavion/k8s-openapi#77. Finding the dependencies between modules should be possible because each package has imports (FileDescriptorProto
has dependency
field).
k8s-pb/k8s-pb-codegen/protos/api/core/v1/generated.proto
Lines 22 to 28 in 7b4bf26
We also don't need to worry about multiplying that by version features if we version this using Kubernetes version (#10).
Eirik A commented
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-client
would only need whatkube-core
pulls in (discovery
mod only needsapimachinery
, but marker trait impls should possibly be done elsewhere - like in this repo)kube-core
would only needapimachinery
(but slight quirk withadmission
from core)kube-derive
avoids it (as before)kube-runtime
can require a lot more, as we get more utils