File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/en/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -212,10 +212,10 @@ kubectl diff -f ./my-manifest.yaml
212
212
213
213
# Produce a period-delimited tree of all keys returned for nodes
214
214
# Helpful when locating a key within a complex nested JSON structure
215
- kubectl get nodes -o json | jq -c ' path(..)|[.[]|tostring] |join(".")'
215
+ kubectl get nodes -o json | jq -c ' paths |join(".")'
216
216
217
217
# Produce a period-delimited tree of all keys returned for pods, etc
218
- kubectl get pods -o json | jq -c ' path(..)|[.[]|tostring] |join(".")'
218
+ kubectl get pods -o json | jq -c ' paths |join(".")'
219
219
220
220
# Produce ENV for all pods, assuming you have a default container for the pods, default namespace and the `env` command is supported.
221
221
# Helpful when running any supported command across all pods, not just `env`
You can’t perform that action at this time.
0 commit comments