Skip to content

Commit 667c15e

Browse files
authored
Merge pull request #42897 from asa3311/sync-zh-59
[zh] sync cheatsheet /reference/kubectl/_index.md
2 parents e543957 + 524fa13 commit 667c15e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

content/zh-cn/docs/reference/kubectl/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ weight: 110
55
no_list: true
66
card:
77
name: reference
8+
title: kubectl 命令行工具
89
weight: 20
910
---
1011
<!--
@@ -14,6 +15,7 @@ weight: 110
1415
no_list: true
1516
card:
1617
name: reference
18+
title: kubectl command line tool
1719
weight: 20
1820
-->
1921
<!-- overview -->

content/zh-cn/docs/reference/kubectl/cheatsheet.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: kubectl 备忘单
33
content_type: concept
44
weight: 10
55
card:
6-
name: reference
7-
weight: 30
6+
name: tasks
7+
weight: 10
88
---
99
<!--
1010
title: kubectl Cheat Sheet
@@ -15,8 +15,8 @@ reviewers:
1515
content_type: concept
1616
weight: 10 # highlight it
1717
card:
18-
name: reference
19-
weight: 30
18+
name: tasks
19+
weight: 10
2020
-->
2121

2222
<!-- overview -->
@@ -886,6 +886,8 @@ Output format | Description
886886
--------------| -----------
887887
`-o=custom-columns=<spec>` | Print a table using a comma separated list of custom columns
888888
`-o=custom-columns-file=<filename>` | Print a table using the custom columns template in the `<filename>` file
889+
`-o=go-template=<template>` | Print the fields defined in a [golang template](https://pkg.go.dev/text/template)
890+
`-o=go-template-file=<filename>` | Print the fields defined by the [golang template](https://pkg.go.dev/text/template) in the `<filename>` file
889891
`-o=json` | Output a JSON formatted API object
890892
`-o=jsonpath=<template>` | Print the fields defined in a [jsonpath](/docs/reference/kubectl/jsonpath) expression
891893
`-o=jsonpath-file=<filename>` | Print the fields defined by the [jsonpath](/docs/reference/kubectl/jsonpath) expression in the `<filename>` file
@@ -897,6 +899,8 @@ Output format | Description
897899
--------------| -----------
898900
`-o=custom-columns=<spec>` | 使用逗号分隔的自定义列来打印表格
899901
`-o=custom-columns-file=<filename>` | 使用 `<filename>` 文件中的自定义列模板打印表格
902+
`-o=go-template=<template>` | 打印在 [golang 模板](https://pkg.go.dev/text/template)中定义的字段。
903+
`-o=go-template-file=<filename>` | 打印在 `<filename>` 文件中由 [golang 模板](https://pkg.go.dev/text/template)定义的字段。
900904
`-o=json` | 输出 JSON 格式的 API 对象
901905
`-o=jsonpath=<template>` | 打印 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath) 表达式中定义的字段
902906
`-o=jsonpath-file=<filename>` | 打印在 `<filename>` 文件中定义的 [jsonpath](/zh-cn/docs/reference/kubectl/jsonpath) 表达式所指定的字段。

0 commit comments

Comments
 (0)