mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Remove GCE specific flag registration
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
d593c886b1
commit
b29fc54f95
@ -18,7 +18,6 @@ package app
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"flag"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
@ -130,14 +129,6 @@ the cloud specific control loops shipped with Kubernetes.`,
|
|||||||
logsapi.AddFlags(logOptions, globalFlagSet)
|
logsapi.AddFlags(logOptions, globalFlagSet)
|
||||||
globalflag.AddGlobalFlags(globalFlagSet, cmd.Name(), logs.SkipLoggingConfigurationFlags())
|
globalflag.AddGlobalFlags(globalFlagSet, cmd.Name(), logs.SkipLoggingConfigurationFlags())
|
||||||
|
|
||||||
if flag.CommandLine.Lookup("cloud-provider-gce-lb-src-cidrs") != nil {
|
|
||||||
// hoist this flag from the global flagset to preserve the commandline until
|
|
||||||
// the gce cloudprovider is removed.
|
|
||||||
globalflag.Register(namedFlagSets.FlagSet("generic"), "cloud-provider-gce-lb-src-cidrs")
|
|
||||||
}
|
|
||||||
if flag.CommandLine.Lookup("cloud-provider-gce-l7lb-src-cidrs") != nil {
|
|
||||||
globalflag.Register(namedFlagSets.FlagSet("generic"), "cloud-provider-gce-l7lb-src-cidrs")
|
|
||||||
}
|
|
||||||
for _, f := range namedFlagSets.FlagSets {
|
for _, f := range namedFlagSets.FlagSets {
|
||||||
fs.AddFlagSet(f)
|
fs.AddFlagSet(f)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user