@@ -23,10 +23,14 @@ func NewDatabaseUpserter(ctx *common.Context, environmentName string) Executor {
23
23
24
24
return newPipelineExecutor (
25
25
workflow .databaseInput (ctx , "" , environmentName ),
26
- workflow .databaseEnvironmentLoader (ctx .Config .Namespace , environmentName , ctx .StackManager , ecsImportParams , ctx .ElbManager ),
27
- workflow .databaseRolesetUpserter (ctx .RolesetManager , ctx .RolesetManager , environmentName ),
28
- workflow .databaseMasterPassword (ctx .Config .Namespace , & ctx .Config .Service , & ecsImportParams , environmentName , ctx .ParamManager , cliExtension ),
29
- workflow .databaseDeployer (ctx .Config .Namespace , & ctx .Config .Service , ecsImportParams , environmentName , ctx .StackManager , ctx .StackManager , ctx .RdsManager ),
26
+ newConditionalExecutor (workflow .hasDatabase (),
27
+ newPipelineExecutor (
28
+ workflow .databaseEnvironmentLoader (ctx .Config .Namespace , environmentName , ctx .StackManager , ecsImportParams , ctx .ElbManager ),
29
+ workflow .databaseRolesetUpserter (ctx .RolesetManager , ctx .RolesetManager , environmentName ),
30
+ workflow .databaseMasterPassword (ctx .Config .Namespace , & ctx .Config .Service , & ecsImportParams , environmentName , ctx .ParamManager , cliExtension ),
31
+ workflow .databaseDeployer (ctx .Config .Namespace , & ctx .Config .Service , ecsImportParams , environmentName , ctx .StackManager , ctx .StackManager , ctx .RdsManager ),
32
+ ),
33
+ nil ),
30
34
)
31
35
}
32
36
0 commit comments