DodoApp: Auto generate SSH key to access source repositories
Change-Id: I5caaed03ecb52b24c7d30fb121c15d7739607e99
diff --git a/core/installer/server/appmanager/server.go b/core/installer/server/appmanager/server.go
index 3360ff4..f4b543b 100644
--- a/core/installer/server/appmanager/server.go
+++ b/core/installer/server/appmanager/server.go
@@ -161,9 +161,8 @@
}
type dodoAppInstallReq struct {
- Id string `json:"id"`
- SSHPrivateKey string `json:"sshPrivateKey"`
- Config map[string]any `json:"config"`
+ Id string `json:"id"`
+ Config map[string]any `json:"config"`
}
func (s *Server) handleDodoAppInstall(w http.ResponseWriter, r *http.Request) {
@@ -192,9 +191,8 @@
appDir := filepath.Join("/dodo-app", req.Id)
namespace := "dodo-app-testttt" // TODO(gio)
if _, err := s.m.Install(app, req.Id, appDir, namespace, map[string]any{
- "managerAddr": "", // TODO(gio)
- "appId": req.Id,
- "sshPrivateKey": req.SSHPrivateKey,
+ "managerAddr": "", // TODO(gio)
+ "appId": req.Id,
}); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return