mirror of
https://github.com/kubernetes/sample-controller.git
synced 2025-04-21 19:35:00 +08:00
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:
parent
891ba91009
commit
5d2271c191
1
main.go
1
main.go
@ -38,6 +38,7 @@ var (
|
||||
)
|
||||
|
||||
func main() {
|
||||
klog.InitFlags(nil)
|
||||
flag.Parse()
|
||||
|
||||
// set up signals so we handle the first shutdown signal gracefully
|
||||
|
Loading…
x
Reference in New Issue
Block a user