Remove duplicate import

Signed-off-by: pigletfly <wangbing.adam@gmail.com>
This commit is contained in:
pigletfly 2021-07-09 12:04:29 +08:00
parent e1dfb7707d
commit 1e274e9b8f
1 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@ import (
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/util/clock"
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/kubernetes"
clientset "k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/record"
"k8s.io/component-helpers/apimachinery/lease"
@ -296,7 +295,7 @@ func getClusterHealthStatus(clusterClient *util.ClusterClient) (online, healthy
return true, true
}
func healthEndpointCheck(client *kubernetes.Clientset, path string) (int, error) {
func healthEndpointCheck(client *clientset.Clientset, path string) (int, error) {
var healthStatus int
resp := client.DiscoveryClient.RESTClient().Get().AbsPath(path).Do(context.TODO()).StatusCode(&healthStatus)
return healthStatus, resp.Error()