unexport noderolekey
parent
968fe86869
commit
a6ec05e35a
|
@ -55,7 +55,7 @@ func CreateContainerNode(p CreateParams) error {
|
||||||
// label the node with the cluster ID
|
// label the node with the cluster ID
|
||||||
"--label", p.ClusterLabel,
|
"--label", p.ClusterLabel,
|
||||||
// label the node with the role ID
|
// 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 {
|
for key, val := range p.Envs {
|
||||||
|
|
|
@ -22,7 +22,7 @@ const (
|
||||||
// ClusterLabelKey is applied to each node docker container for identification
|
// ClusterLabelKey is applied to each node docker container for identification
|
||||||
ClusterLabelKey = "io.x-k8s.kic.cluster"
|
ClusterLabelKey = "io.x-k8s.kic.cluster"
|
||||||
// NodeRoleKey is used to identify if it is control plane or worker
|
// 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 {
|
type CreateParams struct {
|
||||||
|
|
Loading…
Reference in New Issue