k8snetworkplumbingwg / multi-networkpolicy

Apache License 2.0
19 stars 11 forks source link

Reflector cannot access NetworkPolicies since v1beta1 change #11

Open ravens opened 4 years ago

ravens commented 4 years ago

With this commit (https://github.com/k8snetworkplumbingwg/multi-networkpolicy/commit/1df4750eeb1b408c74f200bfed07c1bb9eecd776) it looks like the Reflector used for multi-networkpolicy cannot get the policies with the following error message:

 reflector.go:178] pkg/mod/k8s.io/client-go@v0.18.0/tools/cache/reflector.go:125: Failed to list *v1beta1.MultiNetworkPolicy: the server could not find the requested resource (get multi-networkpolicies.k8s.cni.cncf.io)

Reverting the commit fixes the problem.

s1061123 commented 4 years ago

Thank you so much for the report!

Fixed at 7ba9660818e6743b68827f13d4b0cfdf545af143, could you please update it and try it?

s1061123 commented 4 years ago

@ravens hi, I found some issues more, so let me investigate it..

ravens commented 4 years ago

Sure, I was actually about to try the new branch, but I will postpone.