Skip to content

Commit 72f115f

Browse files
authored
Merge pull request #32731 from Arhell/fix-command
[ja] simplify commands
2 parents 463a881 + fe3ef9d commit 72f115f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/ja/docs/reference/kubectl/cheatsheet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ kubectl diff -f ./my-manifest.yaml
200200

201201
# Nodeから返されるすべてのキーをピリオド区切りの階層表記で生成します。
202202
# 複雑にネストされたJSON構造をもつキーを指定したい時に便利です
203-
kubectl get nodes -o json | jq -c 'path(..)|[.[]|tostring]|join(".")'
203+
kubectl get nodes -o json | jq -c 'paths|join(".")'
204204

205205
# Pod等から返されるすべてのキーをピリオド区切り階層表記で生成します。
206-
kubectl get pods -o json | jq -c 'path(..)|[.[]|tostring]|join(".")'
206+
kubectl get pods -o json | jq -c 'paths|join(".")'
207207
```
208208

209209
## リソースのアップデート

0 commit comments

Comments
 (0)