forked from rook/rook
Merge pull request #1377 from travisn/init-flag-parse
Initialize flag parsing for the logs
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user