Open Colvin-Y opened 5 days ago
Hi @Colvin-Y, can you try this branch and let me know how it works for you?
Hi @Colvin-Y, can you try this branch and let me know how it works for you?
76
Hi @aantn, Uhuh,nice PR! implementation is same as what I think. I'd like to try it recently, may this weekend. \ Btw, why dont'u refactor controller.go to tidy so many
if conf.Resource.XXX
case. \
Yes, I think it it possible. It is quite an eyesore right now.
User may want to watch their own crd objects, like advanced-statefulset in openkruise. Current object types is too few.\
Actually, if user config kube-watch controller rbac correcly, we can use
k8s.io/client-go/dynamic/dynamicinformer
to watch any unstructured object if we know it'sgvk
info (resources
can be found bydiscovery client
)\By this implementation,
pkg/controller/controller.go::Start()
function will be more short and clear. We can remove so manyif conf.Resource.XXX
branch.