Skip to content

Commit

Permalink
fix(provider/cf): populate red/black strategy additional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy Louie committed Nov 23, 2018
1 parent 25a9aa8 commit fe73967
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit fe73967

Please sign in to comment.