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
25e110df
Commit
25e110df
authored
Dec 28, 2017
by
stewart-yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[kube-proxy]enhance kubeproxy init flag
parent
5d144152
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
10 deletions
+1
-10
BUILD
cmd/kube-proxy/BUILD
+0
-1
server.go
cmd/kube-proxy/app/server.go
+0
-0
proxy.go
cmd/kube-proxy/proxy.go
+1
-9
No files found.
cmd/kube-proxy/BUILD
View file @
25e110df
...
...
@@ -22,7 +22,6 @@ go_library(
"//cmd/kube-proxy/app:go_default_library",
"//pkg/client/metrics/prometheus:go_default_library",
"//pkg/version/prometheus:go_default_library",
"//vendor/github.com/spf13/pflag:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/flag:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/logs:go_default_library",
],
...
...
cmd/kube-proxy/app/server.go
View file @
25e110df
This diff is collapsed.
Click to expand it.
cmd/kube-proxy/proxy.go
View file @
25e110df
...
...
@@ -17,14 +17,11 @@ limitations under the License.
package
main
import
(
goflag
"flag"
"fmt"
"math/rand"
"os"
"time"
"github.com/spf13/pflag"
utilflag
"k8s.io/apiserver/pkg/util/flag"
"k8s.io/apiserver/pkg/util/logs"
"k8s.io/kubernetes/cmd/kube-proxy/app"
...
...
@@ -37,12 +34,7 @@ func main() {
command
:=
app
.
NewProxyCommand
()
// TODO: once we switch everything over to Cobra commands, we can go back to calling
// utilflag.InitFlags() (by removing its pflag.Parse() call). For now, we have to set the
// normalize func and add the go flag set by hand.
pflag
.
CommandLine
.
SetNormalizeFunc
(
utilflag
.
WordSepNormalizeFunc
)
pflag
.
CommandLine
.
AddGoFlagSet
(
goflag
.
CommandLine
)
// utilflag.InitFlags()
utilflag
.
InitFlags
()
logs
.
InitLogs
()
defer
logs
.
FlushLogs
()
...
...
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