Imported knowledge from a private repository

This commit is contained in:
Michele Cereda
2023-02-23 20:11:42 +01:00
parent e9a22db73b
commit fb83703ef9
12 changed files with 499 additions and 12 deletions

View File

@@ -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/