bzp2010 opened a new pull request, #2883: URL: https://github.com/apache/apisix-ingress-controller/pull/2883
<!-- Please answer these questions before submitting a pull request --> ### Type of change: - [x] New feature provided - [x] Refactor ### What this PR does / why we need it: Part 2/6 of #2877, first of a further split of what used to be part 2/6 (store, ~900 lines) into three smaller PRs: 2a (this one), 2b, 2c. Adds a per-cacheKey owner map to the store, recorded from `Insert`'s labels as they're written, plus `Lookup(name, resourceType, id)` and `OwnedEntities(name, owner)` to query it back: given a service, ssl or consumer's type and id, find the Kubernetes resource that produced it, or list everything a given resource owns. No behavior change. `Insert`, `Delete` and `GetResources` do exactly what they did before for every existing caller; this only adds bookkeeping alongside them. Nothing in the codebase calls `Lookup` or `OwnedEntities` yet. This is groundwork for attributing a rejected resource (one the data plane refuses to apply) back to the Kubernetes object that produced it, so later PRs in this series can isolate just that resource instead of failing the whole sync. ### 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? - [ ] Have you modified the corresponding document? - [x] Is this PR backward compatible? -- 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]
