提交 a6ec05e3 编写于 作者: M Medya Gh

unexport noderolekey

上级 968fe868
......@@ -55,7 +55,7 @@ func CreateContainerNode(p CreateParams) error {
// label the node with the cluster ID
"--label", p.ClusterLabel,
// label the node with the role ID
"--label", fmt.Sprintf("%s=%s", NodeRoleKey, p.Role),
"--label", fmt.Sprintf("%s=%s", nodeRoleKey, p.Role),
}
for key, val := range p.Envs {
......
......@@ -22,7 +22,7 @@ const (
// ClusterLabelKey is applied to each node docker container for identification
ClusterLabelKey = "io.x-k8s.kic.cluster"
// NodeRoleKey is used to identify if it is control plane or worker
NodeRoleKey = "io.k8s.sigs.kic.role"
nodeRoleKey = "io.k8s.sigs.kic.role"
)
type CreateParams struct {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册