k8s-pb icon indicating copy to clipboard operation
k8s-pb copied to clipboard

Support selecting API groups to build

Open kazk opened this issue 3 years ago • 1 comments

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).

kazk avatar Oct 31 '21 08:10 kazk

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

clux avatar Oct 31 '21 20:10 clux