Aggregated Discovery should not cache on legacy fallback #115559
Labels
kind/bug
Categorizes issue or PR as related to a bug.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened?
Aggregated discovery caches when fetching from legacy discovery (https://github.com/kubernetes/kubernetes/blob/1ba14700a5448f0cb54b9f5a79100eea71d05e65/staging/src/k8s.io/kube-aggregator/pkg/apiserver/handler_discovery.go#L295-L297).
This causes apiservices who share the same service key to fetch from the cache and returns an empty document when their group-version differs from the initial apiservice that loaded the cache.
What did you expect to happen?
See above
How can we reproduce it (as minimally and precisely as possible)?
See above
Anything else we need to know?
No response
Kubernetes version
1.26
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: