kube-rs / k8s-pb

Playing with Kubernetes protobufs
Apache License 2.0
19 stars 6 forks source link

Support selecting API groups to build #11

Open kazk opened 3 years ago

kazk commented 3 years ago

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

clux commented 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)