Open kazk opened 3 years ago
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 what kube-core
pulls in (discovery
mod only needs apimachinery
, but marker trait impls should possibly be done elsewhere - like in this repo)kube-core
would only need apimachinery
(but slight quirk with admission
from core)kube-derive
avoids it (as before)kube-runtime
can require a lot more, as we get more utils
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
hasdependency
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).