cvas22 opened a new pull request, #2914: URL: https://github.com/apache/apisix-ingress-controller/pull/2914
### Type of change: - [x] New feature provided ### What this PR does / why we need it: Fixes #2910. Adds a `secret_namespaces` config option. When it's set, the manager cache lists and watches Secrets only in those namespaces (`cache.Options.ByObject` for `corev1.Secret`), so the controller can run with namespaced Roles for secrets instead of cluster-wide read. Leaving it empty keeps today's behavior, and every other resource is still cached as before. Secrets referenced from namespaces outside the list can't be read, so resources using them fail to sync. I wrote that into the config docs. Entries are validated as namespace names. The chart lives in apisix-helm-chart, so rendering namespaced Roles there would be a follow-up PR once this lands. ### Pre-submission checklist: - [x] Did you explain what problem does this PR solve? Or what new features have been added? - [x] Have you added corresponding test cases? - [x] Have you modified the corresponding document? - [x] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix-ingress-controller#community) first** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
