Merge pull request #79219 from alvaroaleman/sample-controller-klog-init

Sample controller: Init flags

Kubernetes-commit: 9273ce771127c1cf3eb6e1aa4179d857b6522fdf
This commit is contained in:
Kubernetes Publisher 2019-06-25 02:30:35 -07:00
commit 294bc0f668
2 changed files with 1 additions and 2 deletions

2
go.mod
View File

@ -23,5 +23,3 @@ replace (
k8s.io/client-go => k8s.io/client-go v0.0.0-20190624085356-2c6e35a5b9cf
k8s.io/code-generator => k8s.io/code-generator v0.0.0-20190620073620-d55040311883
)
replace k8s.io/component-base => k8s.io/component-base v0.0.0-20190624085813-dd74dcc4bb91

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