Storage service helm chart integration + bugfixes (#315)

Add storage service and a persistent volume claim to helm charts. A few bugfixes for the api proxy.
This commit is contained in:
Soam Vasani
2017-09-08 04:49:14 -07:00
committed by GitHub
parent 6142ac3648
commit 45c766061a
12 changed files with 181 additions and 9 deletions
+1 -1
View File
@@ -96,5 +96,5 @@ func TestStorageService(t *testing.T) {
}
// cleanup /tmp
os.RemoveAll(fmt.Sprintf("/tmp/", testId))
os.RemoveAll(fmt.Sprintf("/tmp/%v", testId))
}
+2
View File
@@ -132,6 +132,7 @@ func (ss *StorageService) deleteHandler(w http.ResponseWriter, r *http.Request)
fileId, err := ss.getIdFromRequest(r)
if err != nil {
http.Error(w, err.Error(), 400)
return
}
err = ss.container.RemoveItem(fileId)
@@ -148,6 +149,7 @@ func (ss *StorageService) downloadHandler(w http.ResponseWriter, r *http.Request
fileId, err := ss.getIdFromRequest(r)
if err != nil {
http.Error(w, err.Error(), 400)
return
}
// Get the file (called "item" in stow's jargon), open it,