mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
Address code review comments
Add some documentation. Create new util.InitFlags() function to merge and parse in one step.
This commit is contained in:
@@ -53,7 +53,6 @@ import (
|
||||
|
||||
"github.com/coreos/go-etcd/etcd"
|
||||
"github.com/golang/glog"
|
||||
flag "github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -563,8 +562,7 @@ func runServiceTest(client *client.Client) {
|
||||
type testFunc func(*client.Client)
|
||||
|
||||
func main() {
|
||||
util.AddAllFlagsToPFlags()
|
||||
flag.Parse()
|
||||
util.InitFlags()
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
util.ReallyCrash = true
|
||||
util.InitLogs()
|
||||
|
Reference in New Issue
Block a user