mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-29 00:16:25 +00:00
In jsonpath, when filtering a list, if allowMissingKeys is true, skip over any items that are missing an intermediate key in the filter, instead of returning a confusing error. For example, if the filter is {.items[?(@.metadata.annotations.foo=="bar")].metadata.name} we should return all items where metadata.annotations.foo == bar, but if an item in the list does not have metadata, metadata.annotations, or metadata.annotations.foo, skip it instead of erroring. Kubernetes-commit: e6f97d514d83fc2614d1ad4e18de0b318cc81653