Merge pull request #1377 from travisn/init-flag-parse

Initialize flag parsing for the logs
This commit is contained in:
Travis Nielsen
2018-01-04 08:47:28 -08:00
committed by GitHub
+4
View File
@@ -16,6 +16,7 @@ limitations under the License.
package main
import (
"flag"
"fmt"
"github.com/rook/rook/pkg/clusterd"
@@ -46,6 +47,9 @@ func startOperator(cmd *cobra.Command, args []string) error {
setLogLevel()
// workaround a k8s logging issue: https://github.com/kubernetes/kubernetes/issues/17162
flag.CommandLine.Parse([]string{})
logStartupInfo(operatorCmd.Flags())
clientset, apiExtClientset, rookClientset, err := getClientset()