Closed jonathan-innis closed 3 years ago
Because the error that's returned is not a forbidden error, the sync fails in flux at the line here
We should consider what it would mean to relax these errors. We are already continuing if resources are forbidden.
https://github.com/antrea-io/antrea/issues/2214 shows that this is being marked as a BadRequest
.
There's not much we can do about the apiserver telling us our kubernetes client created a BadRequest
.
Perhaps we should just log a warning and move on?
Unfortunately, the warning will be quite noisy. Maybe debug is more appropriate?
It looks like antrea does plan to fix this for the List verb at some point, but it may be valuable to implement and release a simple patch if Flux v1 is still widely deployed on TKG clusters.
This should be fixed by #2386 from the Antrea repo. Validated it on our end
Describe the bug
Flux fails to sync any resources on a TKG cluster with NetworkPolicyStats disabled. It seems that flux is performing a LIST on resources on the cluster to determine resources that it can apply here.
This fails for Tanzu clusters that have policy status disabled because listing on NetworkPolicyStats when the feature is disabled returns an error.
Because the error that's returned is not a forbidden error, the sync fails in flux at the line here
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
Flux should successfully sync with the repository
Logs
Additional context Tanzu cluster was created using this documentation