Skip to content

Commit

Permalink
fix(platform): import duplicate http package (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
wl-chen committed Apr 8, 2022
1 parent 7bbe02b commit a7b2e26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/platform/v1/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}

0 comments on commit a7b2e26

Please sign in to comment.