-
Notifications
You must be signed in to change notification settings - Fork 82
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
Added more fields - part 6. #485
base: main
Are you sure you want to change the base?
Added more fields - part 6. #485
Conversation
I thought there was a problem mapping an array to a single value, but I thought Turns out that if we're working on an accessor that ends on an array, like This means it's vital that the UI does a partial match when trying to match on |
From my notes, the accessor for |
9c8ca26
to
f496391
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a couple missing
- event
- involvedObject.uid
- management.cattle.io.projects
- spec.clusterName
@@ -171,6 +171,9 @@ displayed by `kubectl get $TYPE`. For example `secrets` have `"metadata.fields[0 | |||
corresponding to `"name"`, `"type"`, `"data"`, and `"age"`. For CRDs, these come from | |||
[Additional printer columns](https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#additional-printer-columns) | |||
|
|||
When matching on array-type fields, the array's values are stored in the database as a single field separated by or-bars (`|`s).= | |||
So searching for those fields needs to do a partial match when a field contains more than one value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created rancher/rancher#49116 to address this
@ericpromislow @crobby how are we placed getting this in for feature complete? |
The When I discovered that we map an array of values to I haven't thought yet about how collapsing an array of.values to a |
Regarding filtering (both exact and partial) and sorting on items in arrays, that's been spun out to rancher/rancher#49116. There's a couple of requested fields (not array based) that are missing from the PR though (#485 (review)). If we can get those in we could progress this one |
Tom added
in commit 4477e2 on Jan. 13. That's why it isn't showing up in the changelist. As for
it's in this PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Visually looks good. Future worked pulled out to rancher/rancher#49116.
f496391
to
fe9eb4b
Compare
@ericpromislow as this one is yet to merge, would there be any objections to adding one more? provisioning.cattle.io.clusters
|
I added it but then realized that we should be pulling in all labels now, and there's no need to add this field. How do I coax a cluster to have this label to verify I don't need to explicitly add this field? |
Interesting point, has that part all merged to rancher/rancher? I was getting failure messages on a recent version. I made a mistake, i'll edit the original comment to avoid confusion, but it's an annotation rather than label. |
@richard-cox Can we move further field requests to another issue so we can get this one merged in? Otherwise the scope creep is simple, but it's preventing this from getting into the QA->release part of the pipeline |
Understood. Created rancher/rancher#49288, also for v2.11.0 |
Related to #48603