-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Hi All,
I think this is a issue of listed all Objects in a CRD
Like the output of kubectl get <CRD> -o json shows
kopium provides CRD conversion Struct provides k8s_openapi for use
But when the items of k8s_openapi::List::default() map the CRD output will got some issue
The expected output behavior should be something like
It will appear
the trait ``ListableResource`` is not implemented for <CRD-Name>
In my solution is following information needs to be added to achieve List output
According to k8s_openapi's impl / trait operations
https://docs.rs/k8s-openapi/latest/k8s_openapi/struct.List.html
https://docs.rs/k8s-openapi/latest/k8s_openapi/trait.ListableResource.html
https://docs.rs/k8s-openapi/latest/k8s_openapi/trait.Resource.html
- impl the
ListableResource&&Resource
Resource Info is Mapping to Your CRD
- Add the
deriveAttribute on CRD Struct
For this Issue, Does anyone have a better solution?


