From a6ec05e35a946528c83dc19fa4aa2d112710d148 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Thu, 30 Jan 2020 21:05:51 -0800 Subject: [PATCH] unexport noderolekey --- pkg/drivers/kic/oci/oci.go | 2 +- pkg/drivers/kic/oci/types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/drivers/kic/oci/oci.go b/pkg/drivers/kic/oci/oci.go index 9b0f68e6bd..29805c1e9c 100644 --- a/pkg/drivers/kic/oci/oci.go +++ b/pkg/drivers/kic/oci/oci.go @@ -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 { diff --git a/pkg/drivers/kic/oci/types.go b/pkg/drivers/kic/oci/types.go index 872b57bf6a..786cf3980b 100644 --- a/pkg/drivers/kic/oci/types.go +++ b/pkg/drivers/kic/oci/types.go @@ -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 {