Skip to content

Commit

Permalink
chore(cleanup): Remove no-longer-supported API (#905)
Browse files Browse the repository at this point in the history
Orca no longer supports the /pipelines/<id>/logs endpoint, so this
proxy in gate _always_ returns 404, confusingly saying "Pipeline not
found".

Ref.
spinnaker/orca@cb9d5da
  • Loading branch information
dotdotdotpaul authored and robzienert committed Sep 14, 2019
1 parent 3069283 commit 3fd09d1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,6 @@ class PipelineController {
}
}

@ApiOperation(value = "Retrieve pipeline execution logs", response = List.class)
@RequestMapping(value = "{id}/logs", method = RequestMethod.GET)
List<Map> getPipelineLogs(@PathVariable("id") String id) {
try {
pipelineService.getPipelineLogs(id)
} catch (RetrofitError e) {
if (e.response?.status == 404) {
throw new NotFoundException("Pipeline not found (id: ${id})")
}
}
}

@ApiOperation(value = "Cancel a pipeline execution")
@RequestMapping(value = "{id}/cancel", method = RequestMethod.PUT)
void cancelPipeline(@PathVariable("id") String id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,6 @@ class PipelineService {
orcaServiceSelector.withContext(RequestContext.get()).getPipeline(id)
}

List<Map> getPipelineLogs(String id) {
orcaServiceSelector.withContext(RequestContext.get()).getPipelineLogs(id)
}

Map cancelPipeline(String id, String reason, boolean force) {
setApplicationForExecution(id)
orcaServiceSelector.withContext(RequestContext.get()).cancelPipeline(id, reason, force, "")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ interface OrcaService {
@GET("/pipelines/{id}")
Map getPipeline(@Path("id") String id)

@Headers("Accept: application/json")
@GET("/pipelines/{id}/logs")
List<Map> getPipelineLogs(@Path("id") String id)

@Headers("Accept: application/json")
@PUT("/pipelines/{id}/cancel")
Map cancelPipeline(@Path("id") String id, @Query("reason") reason, @Query("force") force, @Body String ignored)
Expand Down

0 comments on commit 3fd09d1

Please sign in to comment.