Update Chinese page jsonpath

This commit is contained in:
GoodGameZoo
2021-06-28 00:08:05 -07:00
parent b089cf0376
commit 86984f220e
@@ -142,7 +142,7 @@ kubectl get pods -o=jsonpath="{range .items[*]}{.metadata.name}{\"\t\"}{.status.
{{< /note >}} {{< /note >}}
--> -->
{{< note >}} {{< note >}}
在 Windows 上,您必须用双引号把任何包含空格的 JSONPath 模板(不是上面 bash 所示的单引号)。 在 Windows 上,对于任何包含空格的 JSONPath 模板,您必须使用双引号(不是上面 bash 所示的单引号)。
反过来,这意味着您必须在模板中的所有文字周围使用单引号或转义的双引号。 反过来,这意味着您必须在模板中的所有文字周围使用单引号或转义的双引号。
例如: 例如:
@@ -176,4 +176,3 @@ kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.nam
kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image' kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image'
``` ```
{{< /note >}} {{< /note >}}