Skip to content
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

Support field path with key-value pair #290

Open
khanhtc1202 opened this issue Apr 8, 2022 · 0 comments
Open

Support field path with key-value pair #290

khanhtc1202 opened this issue Apr 8, 2022 · 0 comments

Comments

@khanhtc1202
Copy link

khanhtc1202 commented Apr 8, 2022

The current field path only supports parse path index (number) to access object/element of an array by number (ref: code). In some case, it would be nice if we can have a way to access object/element using key-pair value such as $.spec.template.spec.containers.[name=nginx].image, since we don't want to rely on the index of the element in array.

Same thing is supported and could be found on sig-cli docs
ref: kubectl doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant