Skip to content

Commit f2a07be

Browse files
authored
Merge pull request #40250 from zdxgs/main
Fix the links
2 parents d5c206a + 0a0733b commit f2a07be

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh-cn/docs/tasks/access-application-cluster/list-all-running-container-images.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,12 @@ kubectl get pods --namespace kube-system -o jsonpath="{.items[*].spec.containers
135135
<!--
136136
## List Container images using a go-template instead of jsonpath
137137
138-
As an alternative to jsonpath, Kubectl supports using [go-templates](https://golang.org/pkg/text/template/)
138+
As an alternative to jsonpath, Kubectl supports using [go-templates](https://pkg.go.dev/text/template)
139139
for formatting the output:
140140
-->
141141
## 使用 go-template 代替 jsonpath 来获取容器镜像
142142

143-
作为 jsonpath 的替代,Kubectl 支持使用 [go-templates](https://golang.org/pkg/text/template/) 来格式化输出:
143+
作为 jsonpath 的替代,Kubectl 支持使用 [go-templates](https://pkg.go.dev/text/template) 来格式化输出:
144144

145145
```shell
146146
kubectl get pods --all-namespaces -o go-template --template="{{range .items}}{{range .spec.containers}}{{.image}} {{end}}{{end}}"
@@ -152,10 +152,10 @@ kubectl get pods --all-namespaces -o go-template --template="{{range .items}}{{r
152152
### Reference
153153
154154
* [Jsonpath](/docs/reference/kubectl/jsonpath/) reference guide
155-
* [Go template](https://golang.org/pkg/text/template/) reference guide
155+
* [Go template](https://pkg.go.dev/text/template) reference guide
156156
-->
157157
### 参考
158158

159159
* [Jsonpath](/zh-cn/docs/reference/kubectl/jsonpath/) 参考指南
160-
* [Go template](https://golang.org/pkg/text/template/) 参考指南
160+
* [Go template](https://pkg.go.dev/text/template) 参考指南
161161

0 commit comments

Comments
 (0)