-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Support watch any k8s resource #79
Comments
Colvin-Y
changed the title
[feature] Support watch any resources
[feature] Support watch any k8s resource
Jun 27, 2024
Yes, I think it it possible. It is quite an eyesore right now. |
Now supported in the latest version! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.The text was updated successfully, but these errors were encountered: