-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't index and list by arbitrary field with Unstructured objects #1705
Comments
/kind bug |
If this is a known issue or I miss something, please let me know. |
Also, surprisingly we don't have real tests covering the workflow of using |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
@mengqiy It is because the BTW, is it the expected behavior that delegatingClient always get/list with direct client for unstructured objects, even if they already have been created informers in cache? @alvaroaleman @vincepri |
If that was the explanation it would never have worked I think? Because to my knowledge we always behaved like that (unstructured objects go to apiserver, structured to cache). It is expected and was decided to be like that, at the time that was the only way to avoid using the cache. Today, there is |
That is a little different.
Understand. We can consider this to be the expected behavior for now. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I can't index and list by arbitrary field with
Unstructured
objects in controller-runtime v0.7.0+ (including the latest v0.10.2). It will complain with the following error:{"reconciler group": "example.co", "reconciler kind": "Foo", "name": "hello", "namespace": "default", "error": "field label not supported: metadata.ownerReferences.example.co.foo"}
I can do that with
Unstructured
objects in controller-runtimev0.6.*
.Code not working
I have also verified that v0.10.2 works with typed objects and
PartialObjectMetadata
objects.The text was updated successfully, but these errors were encountered: