From fe739671dee5a0e72da3080b88aa22ee96f5acbc Mon Sep 17 00:00:00 2001 From: Jammy Louie Date: Fri, 23 Nov 2018 11:58:59 -0500 Subject: [PATCH] fix(provider/cf): populate red/black strategy additional fields --- .../configure/serverGroupCommandBuilder.service.cf.ts | 3 +++ .../configure/serverGroupConfigurationModel.cf.ts | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupCommandBuilder.service.cf.ts b/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupCommandBuilder.service.cf.ts index d84859fd088..fa02ad0ba24 100644 --- a/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupCommandBuilder.service.cf.ts +++ b/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupCommandBuilder.service.cf.ts @@ -126,8 +126,11 @@ export class CloudFoundryServerGroupCommandBuilder { return this.buildNewServerGroupCommand(application, { mode: 'editPipeline' }).then(app => { app.credentials = originalCluster.account; app.artifact = originalCluster.artifact; + app.delayBeforeDisableSec = originalCluster.delayBeforeDisableSec; app.manifest = originalCluster.manifest; + app.maxRemainingAsgs = originalCluster.maxRemainingAsgs; app.region = originalCluster.region; + app.rollback = originalCluster.rollback; app.strategy = originalCluster.strategy; app.startApplication = originalCluster.startApplication; if (originalCluster.stack) { diff --git a/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupConfigurationModel.cf.ts b/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupConfigurationModel.cf.ts index 6aa4ba8da85..46dd7b7aaf3 100644 --- a/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupConfigurationModel.cf.ts +++ b/app/scripts/modules/cloudfoundry/src/serverGroup/configure/serverGroupConfigurationModel.cf.ts @@ -4,7 +4,10 @@ import { ICloudFoundryCluster, ICloudFoundryEnvVar } from 'cloudfoundry/domain'; export interface ICloudFoundryCreateServerGroupCommand extends IServerGroupCommand { artifact: ICloudFoundryBinarySource; + delayBeforeDisableSec?: number; manifest: ICloudFoundryManifestSource; + maxRemainingAsgs?: number; + rollback?: boolean; startApplication: boolean; } @@ -59,8 +62,11 @@ export interface ICloudFoundryDeployConfiguration { account: string; application: string; artifact: ICloudFoundryBinarySource; + delayBeforeDisableSec?: number; manifest: ICloudFoundryManifestSource; + maxRemainingAsgs?: number; region: string; + rollback?: boolean; stack?: string; freeFormDetails?: string; strategy?: string;