-
Notifications
You must be signed in to change notification settings - Fork 620
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add efs client to Gopkg.* * Add efs client to vendor directory * EFS functional test * Reuse EFS filesystem and mount target(s) * review fixups * more code review fixups
- Loading branch information
Showing
10 changed files
with
3,531 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
agent/functional_tests/testdata/taskdefinitions/task-efs-vol-read/task-definition.json
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,38 @@ | ||
{ | ||
"family": "ecsftest-task-efs-volume", | ||
"containerDefinitions": [ | ||
{ | ||
"name": "task-efs-vol-read", | ||
"image": "127.0.0.1:51670/busybox:latest", | ||
"cpu": 10, | ||
"command": ["sh", "-c", "while true; do sleep 1; [ -f /ecs/success ] && if grep -q 'can you read me' /ecs/success; then exit 42; fi done"], | ||
"memory": 256, | ||
"memoryReservation": 128, | ||
"mountPoints": [ | ||
{ | ||
"sourceVolume": "task-efs-shared", | ||
"containerPath": "/ecs/" | ||
} | ||
] | ||
} | ||
], | ||
"volumes":[ | ||
{ | ||
"name": "task-efs-shared", | ||
"host": null, | ||
"dockerVolumeConfiguration" : { | ||
"scope": "shared", | ||
"autoprovision": true, | ||
"driver": "local", | ||
"labels": { | ||
"mylabels": "test" | ||
}, | ||
"driverOpts": { | ||
"type": "nfs", | ||
"device": ":/", | ||
"o": "addr=FILESYSTEM_ID.efs.TEST_REGION.amazonaws.com,nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" | ||
} | ||
} | ||
} | ||
] | ||
} |
38 changes: 38 additions & 0 deletions
38
agent/functional_tests/testdata/taskdefinitions/task-efs-vol-write/task-definition.json
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,38 @@ | ||
{ | ||
"family": "ecsftest-task-efs-volume", | ||
"containerDefinitions": [ | ||
{ | ||
"name": "task-efs-vol-write", | ||
"image": "127.0.0.1:51670/busybox:latest", | ||
"cpu": 10, | ||
"command": ["sh", "-c", "echo 'can you read me'> /ecs/success; [ -f /ecs/success ] && exit 42 || exit 1"], | ||
"memory": 256, | ||
"memoryReservation": 128, | ||
"mountPoints": [ | ||
{ | ||
"sourceVolume": "task-efs-shared", | ||
"containerPath": "/ecs/" | ||
} | ||
] | ||
} | ||
], | ||
"volumes":[ | ||
{ | ||
"name": "task-efs-shared", | ||
"host": null, | ||
"dockerVolumeConfiguration" : { | ||
"scope": "shared", | ||
"autoprovision": true, | ||
"driver": "local", | ||
"labels": { | ||
"mylabels": "test" | ||
}, | ||
"driverOpts": { | ||
"type": "nfs", | ||
"device": ":/", | ||
"o": "addr=FILESYSTEM_ID.efs.TEST_REGION.amazonaws.com,nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" | ||
} | ||
} | ||
} | ||
] | ||
} |
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
92 changes: 92 additions & 0 deletions
92
agent/vendor/github.com/aws/aws-sdk-go/private/protocol/restjson/restjson.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.