feat(managed): endpoint for getting artifact versions per environment
MODIFY
gate-core/src/main/groovy/com/netflix/spinnaker/gate/services/internal/KeelService.java
gate-core/src/main/groovy/com/netflix/spinnaker/gate/services/internal/KeelService.java
@@ -53,6 +53,9 @@ public interface KeelService {
@GET("/delivery-configs/{name}")
DeliveryConfig getManifest(@Path("name") String name);
+ @GET("/delivery-configs/{name}/artifacts")
+ List<Map<String, Object>> getManifestArtifacts(@Path("name") String name);
+
@POST("/delivery-configs")
DeliveryConfig upsertManifest(@Body DeliveryConfig manifest);

MODIFY
gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/ManagedController.java
gate-web/src/main/groovy/com/netflix/spinnaker/gate/controllers/ManagedController.java
@@ -110,6 +110,14 @@ public class ManagedController {
return keelService.getManifest(name);
}
+ @ApiOperation(
+ value = "Get the status of each version of each artifact in each environment",
+ response = List.class)
+ @GetMapping(path = "/delivery-configs/{name}/artifacts")
+ List<Map<String, Object>> getManifestArtifacts(@PathVariable("name") String name) {
+ return keelService.getManifestArtifacts(name);
+ }
+
@ApiOperation(
value = "Create or update a delivery config manifest",
response = DeliveryConfig.class)

feat(managed): endpoint for getting artifact versions per environment