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.

Kubernetes-commit: 5f610cea1f30a81c2945d5b0f26210cccbd325d3
This commit is contained in:
Alvaro Aleman 2019-06-20 13:18:45 +02:00 committed by Kubernetes Publisher
parent 891ba91009
commit 5d2271c191

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