Skip to content

Commit 95acc1e

Browse files
authored
Merge pull request #41012 from my-git9/path-15982
[zh-cn] rsync dns-debugging-resolution verify-signed-artifacts
2 parents 8a6bb2a + 0057402 commit 95acc1e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

content/zh-cn/docs/tasks/administer-cluster/dns-debugging-resolution.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ Expected output:
432432
PolicyRule:
433433
Resources Non-Resource URLs Resource Names Verbs
434434
--------- ----------------- -------------- -----
435-
nodes [] [] [get]
436435
endpoints [] [] [list watch]
437436
namespaces [] [] [list watch]
438437
pods [] [] [list watch]

content/zh-cn/docs/tasks/administer-cluster/verify-signed-artifacts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Kubernetes 发布过程使用 cosign 的无密钥签名对所有二进制工件
4949
要验证一个特定的二进制文件,获取组件时要包含其签名和证书:
5050

5151
```bash
52-
URL=https://dl.k8s.io/release/v{{< skew currentVersion >}}.0/bin/linux/amd64
52+
URL=https://dl.k8s.io/release/v{{< skew currentPatchVersion >}}/bin/linux/amd64
5353
BINARY=kubectl
5454

5555
FILES=(
@@ -102,7 +102,7 @@ the `cosign verify` command:
102102
从这个列表中选择一个镜像,并使用 `cosign verify` 命令来验证它的签名:
103103

104104
```shell
105-
COSIGN_EXPERIMENTAL=1 cosign verify registry.k8s.io/kube-apiserver-amd64:v1.24.0
105+
COSIGN_EXPERIMENTAL=1 cosign verify registry.k8s.io/kube-apiserver-amd64:v{{< skew currentPatchVersion >}}
106106
```
107107

108108
{{< note >}}
@@ -125,7 +125,7 @@ To verify all signed control plane images, please run this command:
125125
验证所有已签名的控制平面组件镜像,请运行以下命令:
126126

127127
```shell
128-
curl -Ls https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/latest.txt)/release | grep 'PackageName: registry.k8s.io/' | awk '{print $2}' > images.txt
128+
curl -Ls "https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/stable.txt)/release" | grep "SPDXID: SPDXRef-Package-registry.k8s.io" | grep -v sha256 | cut -d- -f3- | sed 's/-/\//' | sed 's/-v1/:v1/' > images.txt
129129
input=images.txt
130130
while IFS= read -r image
131131
do

0 commit comments

Comments
 (0)