Skip to content

Commit cb5d05e

Browse files
authored
Merge pull request #25708 from guzj11/patch-54
Update developing-cloud-controller-manager.md
2 parents 7a9a547 + 3442b89 commit cb5d05e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/zh/docs/tasks/administer-cluster/developing-cloud-controller-manager.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ To build an out-of-tree cloud-controller-manager for your cloud, follow these st
6363
2. 使用来自 Kubernetes 核心代码库的
6464
[cloud-controller-manager 中的 main.go](https://github.com/kubernetes/kubernetes/blob/master/cmd/cloud-controller-manager/controller-manager.go)
6565
作为 main.go 的模板。如上所述,唯一的区别应该是将导入的云包。
66-
3.`main.go` 中导入你的云包,确保你的包有一个 `init` 块来运行 cloudprovider.RegisterCloudProvider。
66+
3.`main.go` 中导入你的云包,确保你的包有一个 `init` 块来运行
67+
[cloudprovider.RegisterCloudProvider](https://github.com/kubernetes/kubernetes/blob/master/pkg/cloudprovider/plugins.go#L42-L52)
6768

6869
<!--
6970
Many cloud providers publish their controller manager code as open source. If you are creating

0 commit comments

Comments
 (0)