Merge pull request #514 from pigletfly/remove-duplicate-import
Remove duplicate import
This commit is contained in:
commit
ae007af9e3
|
@ -18,7 +18,6 @@ import (
|
||||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||||
"k8s.io/apimachinery/pkg/util/clock"
|
"k8s.io/apimachinery/pkg/util/clock"
|
||||||
"k8s.io/apimachinery/pkg/util/wait"
|
"k8s.io/apimachinery/pkg/util/wait"
|
||||||
"k8s.io/client-go/kubernetes"
|
|
||||||
clientset "k8s.io/client-go/kubernetes"
|
clientset "k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/client-go/tools/record"
|
"k8s.io/client-go/tools/record"
|
||||||
"k8s.io/component-helpers/apimachinery/lease"
|
"k8s.io/component-helpers/apimachinery/lease"
|
||||||
|
@ -296,7 +295,7 @@ func getClusterHealthStatus(clusterClient *util.ClusterClient) (online, healthy
|
||||||
return true, true
|
return true, true
|
||||||
}
|
}
|
||||||
|
|
||||||
func healthEndpointCheck(client *kubernetes.Clientset, path string) (int, error) {
|
func healthEndpointCheck(client *clientset.Clientset, path string) (int, error) {
|
||||||
var healthStatus int
|
var healthStatus int
|
||||||
resp := client.DiscoveryClient.RESTClient().Get().AbsPath(path).Do(context.TODO()).StatusCode(&healthStatus)
|
resp := client.DiscoveryClient.RESTClient().Get().AbsPath(path).Do(context.TODO()).StatusCode(&healthStatus)
|
||||||
return healthStatus, resp.Error()
|
return healthStatus, resp.Error()
|
||||||
|
|
Loading…
Reference in New Issue