Skip to content

Commit

Permalink
fix(ecs): update driverOpts type definition from array to map (aws#3358)
Browse files Browse the repository at this point in the history
* fix(ecs): driverOpts type definition

* fix(ecs): add driverOpts to allowed-breaking-changes.txt

* fix(ecs): fix allowed-breaking-changes

* fix(ecs): remove bracket in allowed-breaking-changes.txt
  • Loading branch information
Jimmy Gaussen authored and mergify[bot] committed Aug 9, 2019
1 parent 24ebec8 commit 65e4a5d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions allowed-breaking-changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
incompatible-argument:@aws-cdk/aws-ecs.Ec2TaskDefinition.<initializer>
incompatible-argument:@aws-cdk/aws-ecs.Ec2TaskDefinition.addVolume
incompatible-argument:@aws-cdk/aws-ecs.FargateTaskDefinition.<initializer>
incompatible-argument:@aws-cdk/aws-ecs.FargateTaskDefinition.addVolume
incompatible-argument:@aws-cdk/aws-ecs.TaskDefinition.<initializer>
incompatible-argument:@aws-cdk/aws-ecs.TaskDefinition.addVolume
change-return-type:@aws-cdk/core.Fn.getAtt
new-argument:@aws-cdk/aws-iam.ManagedPolicy.<initializer>
new-argument:@aws-cdk/aws-iam.ManagedPolicy.<initializer>
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ecs/lib/base/task-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ export interface DockerVolumeConfiguration {
*
* @default No options
*/
readonly driverOpts?: string[];
readonly driverOpts?: {[key: string]: string};
/**
* Custom metadata to add to your Docker volume.
*
Expand Down
10 changes: 8 additions & 2 deletions packages/@aws-cdk/aws-ecs/test/ec2/test.ec2-task-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,10 @@ export = {
name: "scratch",
dockerVolumeConfiguration: {
driver: "local",
scope: ecs.Scope.TASK
scope: ecs.Scope.TASK,
driverOpts: {
key1: "value"
}
}
};

Expand All @@ -540,7 +543,10 @@ export = {
Name: "scratch",
DockerVolumeConfiguration: {
Driver: "local",
Scope: 'task'
Scope: 'task',
DriverOpts: {
key1: "value"
}
}
}]
}));
Expand Down

0 comments on commit 65e4a5d

Please sign in to comment.