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
fc4426f0
You need to sign in or sign up before continuing.
Commit
fc4426f0
authored
Feb 24, 2018
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial revert to fix local-up-cluster.sh
parent
829ada8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
BUILD
cmd/kube-proxy/BUILD
+1
-0
server.go
cmd/kube-proxy/app/server.go
+1
-1
proxy.go
cmd/kube-proxy/proxy.go
+9
-1
No files found.
cmd/kube-proxy/BUILD
View file @
fc4426f0
...
@@ -22,6 +22,7 @@ go_library(
...
@@ -22,6 +22,7 @@ go_library(
"//cmd/kube-proxy/app:go_default_library",
"//cmd/kube-proxy/app:go_default_library",
"//pkg/client/metrics/prometheus:go_default_library",
"//pkg/client/metrics/prometheus:go_default_library",
"//pkg/version/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/flag:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/logs:go_default_library",
"//vendor/k8s.io/apiserver/pkg/util/logs:go_default_library",
],
],
...
...
cmd/kube-proxy/app/server.go
View file @
fc4426f0
...
@@ -354,7 +354,7 @@ with the apiserver API to configure the proxy.`,
...
@@ -354,7 +354,7 @@ with the apiserver API to configure the proxy.`,
glog
.
Fatalf
(
"unable to create flag defaults: %v"
,
err
)
glog
.
Fatalf
(
"unable to create flag defaults: %v"
,
err
)
}
}
opts
.
AddFlags
(
pflag
.
CommandLine
)
opts
.
AddFlags
(
cmd
.
Flags
()
)
cmd
.
MarkFlagFilename
(
"config"
,
"yaml"
,
"yml"
,
"json"
)
cmd
.
MarkFlagFilename
(
"config"
,
"yaml"
,
"yml"
,
"json"
)
...
...
cmd/kube-proxy/proxy.go
View file @
fc4426f0
...
@@ -17,11 +17,14 @@ limitations under the License.
...
@@ -17,11 +17,14 @@ limitations under the License.
package
main
package
main
import
(
import
(
goflag
"flag"
"fmt"
"fmt"
"math/rand"
"math/rand"
"os"
"os"
"time"
"time"
"github.com/spf13/pflag"
utilflag
"k8s.io/apiserver/pkg/util/flag"
utilflag
"k8s.io/apiserver/pkg/util/flag"
"k8s.io/apiserver/pkg/util/logs"
"k8s.io/apiserver/pkg/util/logs"
"k8s.io/kubernetes/cmd/kube-proxy/app"
"k8s.io/kubernetes/cmd/kube-proxy/app"
...
@@ -34,7 +37,12 @@ func main() {
...
@@ -34,7 +37,12 @@ func main() {
command
:=
app
.
NewProxyCommand
()
command
:=
app
.
NewProxyCommand
()
utilflag
.
InitFlags
()
// 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()
logs
.
InitLogs
()
logs
.
InitLogs
()
defer
logs
.
FlushLogs
()
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