-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipeline config batch update (#1823)
* feat(pipeline executions/gate) : Added code to save multiple pipelines at once to sql db. This is part of: spinnaker/spinnaker#6147. Enhanced PipelineController.groovy to Added new rest api method bulksavePipeline(List<Map> pipelineList, Boolean staleCheck) This method accepts a list of pipelines json. This method returns a Map object having the below data: { “Successful”: <count>, “Failed”: <cound>, “Failed_list”: [<array of failed pipelines - (application, pipeline name, etc) and the error message] } Enhanced TaskService.java to Added code to poll the task until the SavePipelineTask and MonitorFront50Task status : succeeded, terminal. * feat(pipelines executions/gate): Support for bulk saving pipelines * fix(gate-web) Fix functional test * refactor(gate-web): enable pipeline controller config props in GateConfg instead of GateWebConfig GateWebConfig seems to exist more for spring specific configurations, whereas GateConfig is a general config for the application beans/logic. --------- Co-authored-by: sanopsmx <[email protected]> Co-authored-by: Arifullah Pattan <[email protected]> Co-authored-by: Richard Timpson <[email protected]>
- Loading branch information
1 parent
47f666f
commit 7373cfe
Showing
6 changed files
with
287 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ovy/com/netflix/spinnaker/gate/config/controllers/PipelineControllerConfigProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.netflix.spinnaker.gate.config.controllers; | ||
|
||
import lombok.Data; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
@Data | ||
@ConfigurationProperties(prefix = "controller.pipeline") | ||
public class PipelineControllerConfigProperties { | ||
|
||
/** Holds the configurations to be used for bulk save controller mapping */ | ||
private BulkSaveConfigProperties bulksave = new BulkSaveConfigProperties(); | ||
|
||
@Data | ||
public static class BulkSaveConfigProperties { | ||
private int maxPollsForTaskCompletion = 300; | ||
private int taskCompletionCheckIntervalMs = 2000; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.