Skip to content

Commit

Permalink
getter: allow the gcs download scheme (#6692)
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin authored Nov 19, 2019
1 parent 8fa68ca commit c47d52e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/allocrunner/taskrunner/getter/getter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (
lock sync.Mutex

// supported is the set of download schemes supported by Nomad
supported = []string{"http", "https", "s3", "hg", "git"}
supported = []string{"http", "https", "s3", "hg", "git", "gcs"}
)

const (
Expand Down
7 changes: 7 additions & 0 deletions client/allocrunner/taskrunner/getter/getter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,13 @@ func TestGetGetterUrl_Queries(t *testing.T) {
},
output: "bucket.s3-eu-west-1.amazonaws.com/foo/bar?aws_access_key_id=abcd1234",
},
{
name: "gcs",
artifact: &structs.TaskArtifact{
GetterSource: "gcs::https://www.googleapis.com/storage/v1/b/d/f",
},
output: "gcs::https://www.googleapis.com/storage/v1/b/d/f",
},
{
name: "local file",
artifact: &structs.TaskArtifact{
Expand Down

0 comments on commit c47d52e

Please sign in to comment.