Skip to content

Commit

Permalink
Fix icon URL with namespace (#1586)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Martinez Gotor authored Mar 16, 2020
1 parent 5363b8c commit 8d7105c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/kubeops/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func main() {
assetsvcPrefix := "/assetsvc"
assetsvcRouter := r.PathPrefix(assetsvcPrefix).Subrouter()
// Logos don't require authentication so bypass that step
assetsvcRouter.Methods("GET").Path("/v1/assets/{repo}/{id}/logo").Handler(negroni.New(
assetsvcRouter.Methods("GET").Path("/v1/ns/{ns}/assets/{repo}/{id}/logo").Handler(negroni.New(
negroni.Wrap(http.StripPrefix(assetsvcPrefix, assetsvcProxy)),
))
assetsvcRouter.Methods("GET").Handler(negroni.New(
Expand Down
2 changes: 1 addition & 1 deletion cmd/tiller-proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func main() {
assetsvcPrefix := "/assetsvc"
assetsvcRouter := r.PathPrefix(assetsvcPrefix).Subrouter()
// Logos don't require authentication so bypass that step
assetsvcRouter.Methods("GET").Path("/v1/assets/{repo}/{id}/logo").Handler(negroni.New(
assetsvcRouter.Methods("GET").Path("/v1/ns/{ns}/assets/{repo}/{id}/logo").Handler(negroni.New(
negroni.Wrap(http.StripPrefix(assetsvcPrefix, assetsvcProxy)),
))
assetsvcRouter.Methods("GET").Handler(negroni.New(
Expand Down

0 comments on commit 8d7105c

Please sign in to comment.