Skip to content

Commit

Permalink
fix: direct client uri fix (#5125) (#5126)
Browse files Browse the repository at this point in the history
  • Loading branch information
vLia authored and vsukhin committed Mar 11, 2024
1 parent 087da5b commit 7c370ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/api/v1/client/uploads.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"mime/multipart"
"net/http"
"path/filepath"
"strings"
"time"

"k8s.io/client-go/kubernetes"
Expand Down Expand Up @@ -81,7 +82,7 @@ func (c CopyFileDirectClient) UploadFile(parentName string, parentType TestingTy
}

func (c CopyFileDirectClient) getUri() string {
return c.apiPathPrefix + uri
return strings.Join([]string{c.apiPathPrefix, c.apiURI, "/", Version, uri}, "")
}

// UploadFile uploads a copy file to the API server
Expand Down

0 comments on commit 7c370ea

Please sign in to comment.