Skip to content

Commit ae3eef1

Browse files
authored
Merge pull request #59 from yue9944882/chore/move-client-pkg
Chore: Remove api dependency from transport utils
2 parents 4df804b + 3188b66 commit ae3eef1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/apis/cluster/transport/roundtripper.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/http"
66
"strings"
77

8-
clusterapi "github.com/oam-dev/cluster-gateway/pkg/apis/cluster/v1alpha1"
8+
"github.com/oam-dev/cluster-gateway/pkg/config"
99
)
1010

1111
var _ http.RoundTripper = &clusterGatewayRoundTripper{}
@@ -48,8 +48,8 @@ func formatProxyURL(clusterName, originalPath string) string {
4848
originalPath = strings.TrimPrefix(originalPath, "/")
4949
return strings.Join([]string{
5050
"/apis",
51-
clusterapi.SchemeGroupVersion.Group,
52-
clusterapi.SchemeGroupVersion.Version,
51+
config.MetaApiGroupName,
52+
config.MetaApiVersionName,
5353
"clustergateways",
5454
clusterName,
5555
"proxy",

0 commit comments

Comments
 (0)