mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-16 16:54:24 +00:00
Imported knowledge from a private repository
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
## TL;DR
|
||||
|
||||
```sh
|
||||
# filter elements
|
||||
# only works on arrays, not on maps
|
||||
# Filter elements.
|
||||
# Only works on arrays, not on maps.
|
||||
kubectl get serviceaccounts \
|
||||
-o jsonpath="{.items[?(@.metadata.name!='default')].metadata.name}"
|
||||
```
|
||||
@@ -12,5 +12,7 @@ kubectl get serviceaccounts \
|
||||
## Further readings
|
||||
|
||||
- [JSONPath Syntax]
|
||||
- [Live editor]
|
||||
|
||||
[jsonpath syntax]: https://support.smartbear.com/alertsite/docs/monitors/api/endpoint/jsonpath.html
|
||||
[live editor]: https://json8.github.io/patch/demos/apply/
|
||||
|
||||
Reference in New Issue
Block a user