Merge pull request #514 from pigletfly/remove-duplicate-import

Remove duplicate import
This commit is contained in:
karmada-bot 2021-07-10 09:29:28 +08:00 committed by GitHub
commit ae007af9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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/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()