Commit d2e6480b authored by Davanum Srinivas's avatar Davanum Srinivas

Duplicate a constant - LabelNodeRoleMaster

Per request from @luxas in 53458, to avoid cmd/kubeadm to depend on pkg/controller/service. Added a comment to make this clear.
parent 0a72a8d1
......@@ -10,7 +10,6 @@ go_library(
name = "go_default_library",
srcs = ["constants.go"],
deps = [
"//pkg/controller/service:go_default_library",
"//pkg/util/version:go_default_library",
"//vendor/k8s.io/api/core/v1:go_default_library",
],
......
......@@ -24,7 +24,6 @@ import (
"time"
"k8s.io/api/core/v1"
"k8s.io/kubernetes/pkg/controller/service"
"k8s.io/kubernetes/pkg/util/version"
)
......@@ -132,7 +131,8 @@ const (
DefaultTokenDuration = 24 * time.Hour
// LabelNodeRoleMaster specifies that a node is a master
LabelNodeRoleMaster = service.LabelNodeRoleMaster
// This is a duplicate definition of the constant in pkg/controller/service/service_controller.go
LabelNodeRoleMaster = "node-role.kubernetes.io/master"
// MasterConfigurationConfigMap specifies in what ConfigMap in the kube-system namespace the `kubeadm init` configuration should be stored
MasterConfigurationConfigMap = "kubeadm-config"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment