Explorar o código

case on repo url in get template handler

Alexander Belanger %!s(int64=4) %!d(string=hai) anos
pai
achega
ebd760cf3a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      api/server/handlers/template/get.go

+ 4 - 0
api/server/handlers/template/get.go

@@ -45,6 +45,10 @@ func (t *TemplateGetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
 		version = ""
 	}
 
+	if request.RepoURL == "" {
+		request.RepoURL = t.Config().ServerConf.DefaultApplicationHelmRepoURL
+	}
+
 	chart, err := loader.LoadChartPublic(request.RepoURL, name, version)
 
 	if err != nil {