Sample controller: Init flags

Without this, the flags to make klog log to stdout are not even shown.
Figuring out the `InitFlags()` is not very intuitive for ppl new to the
project, which is the target audience of the sample-controller.
This commit is contained in:
Alvaro Aleman
2019-06-20 13:18:45 +02:00
parent 00e13dbc12
commit 5f610cea1f

View File

@@ -38,6 +38,7 @@ var (
)
func main() {
klog.InitFlags(nil)
flag.Parse()
// set up signals so we handle the first shutdown signal gracefully