Describe the bug
One cannot watch with wildcards (across logical clusters) if the CRD of the related API Resource hasn't been added in the admin logical cluster first.
To Reproduce
Steps to reproduce the behavior:
- Run KCP
kubectl --context=user apply -f contrib/crds/apps/apps_deployments.yaml
kubectl --context=user api-resources
=> deployments are in the API Resources list
kubectl --context=user proxy --port=8080 &
curl -v -H "X-Kubernetes-Cluster: user" http://127.0.0.1:8080/apis/apps/v1/deployments/
=> returns {"apiVersion":"apps/v1","items":[],"kind":"DeploymentList","metadata":{"continue":"","resourceVersion":"167"}}
curl -v -H "X-Kubernetes-Cluster: *" http://127.0.0.1:8080/apis/apps/v1/deployments/
=> returns the 404 error
Expected behavior
It should return an empty list as soon as the expected CRD is found in at least one of the logical clusters.