Parse cmdline flags so we get --v
This commit is contained in:
parent
5c8a25c833
commit
71845f3b89
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ limitations under the License.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/pprof"
|
"net/http/pprof"
|
||||||
|
@ -88,6 +89,7 @@ var (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var kubeClient *unversioned.Client
|
var kubeClient *unversioned.Client
|
||||||
|
flags.AddGoFlagSet(flag.CommandLine)
|
||||||
flags.Parse(os.Args)
|
flags.Parse(os.Args)
|
||||||
clientConfig := kubectl_util.DefaultClientConfig(flags)
|
clientConfig := kubectl_util.DefaultClientConfig(flags)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue