This repository was archived by the owner on Sep 20, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import (
2424
2525 "k8s.io/klog"
2626
27- utilflag "k8s.io/apiserver/pkg/util /flag"
27+ cliflag "k8s.io/component-base/cli /flag"
2828 "k8s.io/component-base/logs"
2929 "k8s.io/kubernetes/cmd/cloud-controller-manager/app"
3030 _ "k8s.io/kubernetes/pkg/client/metrics/prometheus" // for client metric registration
@@ -41,11 +41,11 @@ func main() {
4141 command := app .NewCloudControllerManagerCommand ()
4242
4343 // TODO: once we switch everything over to Cobra commands, we can go back to calling
44- // utilflag .InitFlags() (by removing its pflag.Parse() call). For now, we have to set the
44+ // cliflag .InitFlags() (by removing its pflag.Parse() call). For now, we have to set the
4545 // normalize func and add the go flag set by hand.
46- pflag .CommandLine .SetNormalizeFunc (utilflag .WordSepNormalizeFunc )
46+ pflag .CommandLine .SetNormalizeFunc (cliflag .WordSepNormalizeFunc )
4747 pflag .CommandLine .AddGoFlagSet (goflag .CommandLine )
48- //utilflag .InitFlags()
48+ //cliflag .InitFlags()
4949 logs .InitLogs ()
5050 defer logs .FlushLogs ()
5151
Original file line number Diff line number Diff line change @@ -249,8 +249,8 @@ k8s.io/apimachinery/pkg/apis/meta/v1
249249k8s.io/apimachinery/pkg/runtime
250250k8s.io/apimachinery/pkg/runtime/schema
251251k8s.io/apimachinery/pkg/util/intstr
252- k8s.io/apimachinery/pkg/util/wait
253252k8s.io/apimachinery/pkg/util/sets
253+ k8s.io/apimachinery/pkg/util/wait
254254k8s.io/apimachinery/pkg/util/uuid
255255k8s.io/apimachinery/pkg/conversion
256256k8s.io/apimachinery/pkg/fields
@@ -550,8 +550,8 @@ k8s.io/client-go/tools/clientcmd/api/v1
550550k8s.io/cloud-provider
551551k8s.io/cloud-provider/service/helpers
552552# k8s.io/component-base v0.0.0 => k8s.io/component-base v0.0.0-20190805141645-3a5e5ac800ae
553- k8s.io/component-base/logs
554553k8s.io/component-base/cli/flag
554+ k8s.io/component-base/logs
555555k8s.io/component-base/cli/globalflag
556556k8s.io/component-base/config
557557k8s.io/component-base/featuregate
You can’t perform that action at this time.
0 commit comments