Skip to content

Commit 0a6ad55

Browse files
authored
Merge pull request kubernetes#125384 from dims/remove-gce-specific-flag-registration
Remove GCE specific flag registration
2 parents 8e791fd + b29fc54 commit 0a6ad55

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

staging/src/k8s.io/cloud-provider/app/controllermanager.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package app
1818

1919
import (
2020
"context"
21-
"flag"
2221
"fmt"
2322
"math/rand"
2423
"os"
@@ -130,14 +129,6 @@ the cloud specific control loops shipped with Kubernetes.`,
130129
logsapi.AddFlags(logOptions, globalFlagSet)
131130
globalflag.AddGlobalFlags(globalFlagSet, cmd.Name(), logs.SkipLoggingConfigurationFlags())
132131

133-
if flag.CommandLine.Lookup("cloud-provider-gce-lb-src-cidrs") != nil {
134-
// hoist this flag from the global flagset to preserve the commandline until
135-
// the gce cloudprovider is removed.
136-
globalflag.Register(namedFlagSets.FlagSet("generic"), "cloud-provider-gce-lb-src-cidrs")
137-
}
138-
if flag.CommandLine.Lookup("cloud-provider-gce-l7lb-src-cidrs") != nil {
139-
globalflag.Register(namedFlagSets.FlagSet("generic"), "cloud-provider-gce-l7lb-src-cidrs")
140-
}
141132
for _, f := range namedFlagSets.FlagSets {
142133
fs.AddFlagSet(f)
143134
}

0 commit comments

Comments
 (0)