From f0e7fc71629096960184b71d7d32005d569e3bff Mon Sep 17 00:00:00 2001 From: Arhell Date: Tue, 5 Jan 2021 01:24:22 +0200 Subject: [PATCH] [zh] Cloud Controller Manager: fix a broken link --- .../administer-cluster/developing-cloud-controller-manager.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/zh/docs/tasks/administer-cluster/developing-cloud-controller-manager.md b/content/zh/docs/tasks/administer-cluster/developing-cloud-controller-manager.md index af70cd3b6f4a1..0a9dae2eb49e1 100644 --- a/content/zh/docs/tasks/administer-cluster/developing-cloud-controller-manager.md +++ b/content/zh/docs/tasks/administer-cluster/developing-cloud-controller-manager.md @@ -55,13 +55,13 @@ To build an out-of-tree cloud-controller-manager for your cloud, follow these st 1. 使用满足 [cloudprovider.Interface](https://git.k8s.io/kubernetes/pkg/cloudprovider/cloud.go) 的实现创建一个 Go 语言包。 2. 使用来自 Kubernetes 核心代码库的 - [cloud-controller-manager 中的 main.go](https://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/controller-manager.go) + [cloud-controller-manager 中的 main.go](https://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/main.go) 作为 main.go 的模板。如上所述,唯一的区别应该是将导入的云包。 3. 在 `main.go` 中导入你的云包,确保你的包有一个 `init` 块来运行 [cloudprovider.RegisterCloudProvider](https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/plugins.go#L42-L52)。