未验证 提交 87802b2c 编写于 作者: M Medya Ghazizadeh 提交者: GitHub

Merge pull request #4876 from josedonizetti/revert-4867-fix-flag-parse-error-logging

Revert "Fix flag.Parse error logging"
......@@ -25,11 +25,6 @@ import (
"github.com/golang/glog"
"github.com/pkg/profile"
// initflag must be imported before any other minikube pkg.
// Fix for https://github.com/kubernetes/minikube/issues/4866
_ "k8s.io/minikube/pkg/initflag"
"k8s.io/minikube/cmd/minikube/cmd"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/pkg/minikube/machine"
......
/*
Copyright 2019 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package initflag
import (
"flag"
)
func init() {
// Workaround for "ERROR: logging before flag.Parse"
// See: https://github.com/kubernetes/kubernetes/issues/17162
_ = flag.CommandLine.Parse([]string{})
}
......@@ -31,8 +31,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"github.com/docker/machine/libmachine/state"
retryablehttp "github.com/hashicorp/go-retryablehttp"
"k8s.io/apimachinery/pkg/labels"
......
......@@ -24,8 +24,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
pkgutil "k8s.io/minikube/pkg/util"
......
......@@ -24,8 +24,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"k8s.io/minikube/test/integration/util"
)
......
......@@ -23,8 +23,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
api "k8s.io/kubernetes/pkg/apis/core"
"k8s.io/minikube/test/integration/util"
)
......
......@@ -22,10 +22,6 @@ import (
"strings"
"testing"
// initflag must be imported before any other minikube pkg.
// Fix for https://github.com/kubernetes/minikube/issues/4866
_ "k8s.io/minikube/pkg/initflag"
"k8s.io/minikube/test/integration/util"
)
......
......@@ -22,8 +22,6 @@ import (
"strings"
"testing"
_ "k8s.io/minikube/pkg/initflag"
"github.com/docker/machine/libmachine/state"
"k8s.io/minikube/test/integration/util"
)
......
......@@ -29,8 +29,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"k8s.io/apimachinery/pkg/labels"
pkgutil "k8s.io/minikube/pkg/util"
"k8s.io/minikube/test/integration/util"
......
......@@ -24,8 +24,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"github.com/docker/machine/libmachine/state"
"k8s.io/minikube/test/integration/util"
)
......
......@@ -30,8 +30,6 @@ import (
"net/http"
"net/url"
_ "k8s.io/minikube/pkg/initflag"
"github.com/elazarl/goproxy"
retryablehttp "github.com/hashicorp/go-retryablehttp"
"github.com/phayes/freeport"
......
......@@ -26,8 +26,6 @@ import (
"github.com/pkg/errors"
_ "k8s.io/minikube/pkg/initflag"
core "k8s.io/api/core/v1"
storage "k8s.io/api/storage/v1"
"k8s.io/apimachinery/pkg/labels"
......
......@@ -25,8 +25,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"github.com/docker/machine/libmachine/state"
"k8s.io/minikube/pkg/minikube/constants"
"k8s.io/minikube/test/integration/util"
......
......@@ -28,8 +28,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"k8s.io/apimachinery/pkg/util/wait"
"github.com/pkg/errors"
......
......@@ -25,8 +25,6 @@ import (
"strings"
"testing"
_ "k8s.io/minikube/pkg/initflag"
"github.com/docker/machine/libmachine/state"
retryablehttp "github.com/hashicorp/go-retryablehttp"
"github.com/pkg/errors"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册