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
41a4faa6
Commit
41a4faa6
authored
Jul 18, 2017
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose method to allow externally setting defaults on an external type
parent
6b78eeca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server.go
cmd/kube-proxy/app/server.go
+2
-2
No files found.
cmd/kube-proxy/app/server.go
View file @
41a4faa6
...
@@ -302,7 +302,7 @@ func (o *Options) loadConfig(data []byte) (*componentconfig.KubeProxyConfigurati
...
@@ -302,7 +302,7 @@ func (o *Options) loadConfig(data []byte) (*componentconfig.KubeProxyConfigurati
return
config
,
nil
return
config
,
nil
}
}
func
(
o
*
Options
)
a
pplyDefaults
(
in
*
componentconfig
.
KubeProxyConfiguration
)
(
*
componentconfig
.
KubeProxyConfiguration
,
error
)
{
func
(
o
*
Options
)
A
pplyDefaults
(
in
*
componentconfig
.
KubeProxyConfiguration
)
(
*
componentconfig
.
KubeProxyConfiguration
,
error
)
{
external
,
err
:=
o
.
scheme
.
ConvertToVersion
(
in
,
v1alpha1
.
SchemeGroupVersion
)
external
,
err
:=
o
.
scheme
.
ConvertToVersion
(
in
,
v1alpha1
.
SchemeGroupVersion
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -344,7 +344,7 @@ with the apiserver API to configure the proxy.`,
...
@@ -344,7 +344,7 @@ with the apiserver API to configure the proxy.`,
},
},
}
}
opts
.
config
,
err
=
opts
.
a
pplyDefaults
(
opts
.
config
)
opts
.
config
,
err
=
opts
.
A
pplyDefaults
(
opts
.
config
)
if
err
!=
nil
{
if
err
!=
nil
{
glog
.
Fatalf
(
"unable to create flag defaults: %v"
,
err
)
glog
.
Fatalf
(
"unable to create flag defaults: %v"
,
err
)
}
}
...
...
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