feat(k8s): add the ability to deploy from a manifest URL (#5550)

This commit is contained in:
Anthony Lapenna
2021-09-03 17:37:34 +12:00
committed by GitHub
parent 1220ae7571
commit 70602cf7c8
5 changed files with 122 additions and 8 deletions
+2
View File
@@ -149,6 +149,8 @@ func (handler *Handler) createKubernetesStack(w http.ResponseWriter, r *http.Req
return handler.createKubernetesStackFromFileContent(w, r, endpoint)
case "repository":
return handler.createKubernetesStackFromGitRepository(w, r, endpoint)
case "url":
return handler.createKubernetesStackFromManifestURL(w, r, endpoint)
}
return &httperror.HandlerError{StatusCode: http.StatusBadRequest, Message: "Invalid value for query parameter: method. Value must be one of: string or repository", Err: errors.New(request.ErrInvalidQueryParameter)}
}