Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit c0b2b3e

Browse files
committed
Fixed util/flag dependency
1 parent 9cd71ed commit c0b2b3e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cmd/cloudstack-ccm/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ k8s.io/apimachinery/pkg/apis/meta/v1
249249
k8s.io/apimachinery/pkg/runtime
250250
k8s.io/apimachinery/pkg/runtime/schema
251251
k8s.io/apimachinery/pkg/util/intstr
252-
k8s.io/apimachinery/pkg/util/wait
253252
k8s.io/apimachinery/pkg/util/sets
253+
k8s.io/apimachinery/pkg/util/wait
254254
k8s.io/apimachinery/pkg/util/uuid
255255
k8s.io/apimachinery/pkg/conversion
256256
k8s.io/apimachinery/pkg/fields
@@ -550,8 +550,8 @@ k8s.io/client-go/tools/clientcmd/api/v1
550550
k8s.io/cloud-provider
551551
k8s.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
554553
k8s.io/component-base/cli/flag
554+
k8s.io/component-base/logs
555555
k8s.io/component-base/cli/globalflag
556556
k8s.io/component-base/config
557557
k8s.io/component-base/featuregate

0 commit comments

Comments
 (0)