Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for filtering/sorting by reserved fields
Certain fields like "type" in an object are reserved by rancher/apiserver and so are transmuted to an underscore-prefixed version of the field name, e.g. "_type", which is what appears in the HTTP response output. Objects like Secrets, which have a built-in Type field, are subject to this. Without this patch, filtering and sorting are done on the object prior to the field renaming, so filtering by "_type" would result in no filtering happening even though the output returned to the user does contain "_type". This change ensures that the field name changes happen before filtering and sorting is started.
- Loading branch information