Revert "Fix flag.Parse error logging"

pull/4876/head
Jose Donizetti 2019-07-25 23:03:04 -03:00 committed by GitHub
parent 288024fd53
commit fe00076341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 0 additions and 60 deletions

View File

@ -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"

View File

@ -1,27 +0,0 @@
/*
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{})
}

View File

@ -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"

View File

@ -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"

View File

@ -24,8 +24,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"k8s.io/minikube/test/integration/util"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -22,8 +22,6 @@ import (
"strings"
"testing"
_ "k8s.io/minikube/pkg/initflag"
"github.com/docker/machine/libmachine/state"
"k8s.io/minikube/test/integration/util"
)

View File

@ -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"

View File

@ -24,8 +24,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"github.com/docker/machine/libmachine/state"
"k8s.io/minikube/test/integration/util"
)

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -28,8 +28,6 @@ import (
"testing"
"time"
_ "k8s.io/minikube/pkg/initflag"
"k8s.io/apimachinery/pkg/util/wait"
"github.com/pkg/errors"

View File

@ -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"