Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d2e6480b
Commit
d2e6480b
authored
Oct 14, 2017
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
BUILD
cmd/kubeadm/app/constants/BUILD
+0
-1
constants.go
cmd/kubeadm/app/constants/constants.go
+2
-2
No files found.
cmd/kubeadm/app/constants/BUILD
View file @
d2e6480b
...
...
@@ -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",
],
...
...
cmd/kubeadm/app/constants/constants.go
View file @
d2e6480b
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment