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
5af2ac53
Commit
5af2ac53
authored
Sep 20, 2017
by
Dong Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment for controller manager default values
parent
7f52438d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
options.go
cmd/cloud-controller-manager/app/options/options.go
+2
-0
options.go
cmd/kube-controller-manager/app/options/options.go
+2
-0
No files found.
cmd/cloud-controller-manager/app/options/options.go
View file @
5af2ac53
...
@@ -45,6 +45,8 @@ type CloudControllerManagerServer struct {
...
@@ -45,6 +45,8 @@ type CloudControllerManagerServer struct {
// NewCloudControllerManagerServer creates a new ExternalCMServer with a default config.
// NewCloudControllerManagerServer creates a new ExternalCMServer with a default config.
func
NewCloudControllerManagerServer
()
*
CloudControllerManagerServer
{
func
NewCloudControllerManagerServer
()
*
CloudControllerManagerServer
{
s
:=
CloudControllerManagerServer
{
s
:=
CloudControllerManagerServer
{
// Part of these default values also present in 'cmd/kube-controller-manager/app/options/options.go'.
// Please keep them in sync when doing update.
KubeControllerManagerConfiguration
:
componentconfig
.
KubeControllerManagerConfiguration
{
KubeControllerManagerConfiguration
:
componentconfig
.
KubeControllerManagerConfiguration
{
Port
:
ports
.
CloudControllerManagerPort
,
Port
:
ports
.
CloudControllerManagerPort
,
Address
:
"0.0.0.0"
,
Address
:
"0.0.0.0"
,
...
...
cmd/kube-controller-manager/app/options/options.go
View file @
5af2ac53
...
@@ -55,6 +55,8 @@ func NewCMServer() *CMServer {
...
@@ -55,6 +55,8 @@ func NewCMServer() *CMServer {
}
}
s
:=
CMServer
{
s
:=
CMServer
{
// Part of these default values also present in 'cmd/cloud-controller-manager/app/options/options.go'.
// Please keep them in sync when doing update.
KubeControllerManagerConfiguration
:
componentconfig
.
KubeControllerManagerConfiguration
{
KubeControllerManagerConfiguration
:
componentconfig
.
KubeControllerManagerConfiguration
{
Controllers
:
[]
string
{
"*"
},
Controllers
:
[]
string
{
"*"
},
Port
:
ports
.
ControllerManagerPort
,
Port
:
ports
.
ControllerManagerPort
,
...
...
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