From 5d9a60becbca0ce349a94a832ac7b7b9fab788ed Mon Sep 17 00:00:00 2001 From: wl-chen Date: Thu, 7 Apr 2022 10:47:00 +0800 Subject: [PATCH] fix(platform): import duplicate http package --- api/platform/v1/cluster.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/platform/v1/cluster.go b/api/platform/v1/cluster.go index 462ec1c57..c5173b342 100644 --- a/api/platform/v1/cluster.go +++ b/api/platform/v1/cluster.go @@ -26,7 +26,6 @@ import ( "time" "tkestack.io/tke/pkg/util/http" - utilhttp "tkestack.io/tke/pkg/util/http" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "tkestack.io/tke/cmd/tke-installer/app/installer/constants" @@ -200,6 +199,6 @@ func (in *Cluster) AuthzWebhookBuiltinEndpoint() (string, bool) { } } - return utilhttp.MakeEndpoint("https", endPointHost, + return http.MakeEndpoint("https", endPointHost, constants.AuthzWebhookNodePort, "/auth/authz"), true }