Partial revert to fix local-up-cluster.sh

This commit is contained in:
Davanum Srinivas
2018-02-24 13:35:45 -05:00
parent 829ada8e30
commit fc4426f040
3 changed files with 11 additions and 2 deletions

View File

@@ -17,11 +17,14 @@ 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"
@@ -34,7 +37,12 @@ func main() {
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()
defer logs.FlushLogs()