Skip to content

Commit

Permalink
e2e: smoke test per-alloc option for CSI
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Mar 11, 2021
1 parent 1683f68 commit 3ff2917
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions e2e/csi/input/use-ebs-volume.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ job "use-ebs-volume" {

group "group" {
volume "test" {
type = "csi"
source = "ebs-vol0"
type = "csi"
source = "ebs-vol"
per_alloc = true
}

task "task" {
Expand Down
2 changes: 1 addition & 1 deletion e2e/terraform/compute.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ data "external" "packer_sha" {
sha=$(git log -n 1 --pretty=format:%H packer)
echo "{\"sha\":\"$${sha}\"}"
EOT
]
]

}

Expand Down
2 changes: 1 addition & 1 deletion e2e/terraform/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ nomad_local_binary = "" # overrides nomad_sha and nomad_version if set

# Example overrides:
# nomad_sha = "38e23b62a7700c96f4898be777543869499fea0a"
# nomad_local_binary = "../../pkg/linux_amd/nomad"
# nomad_local_binary = "../../pkg/linux_amd64/nomad"
# nomad_local_binary_client_windows_2016_amd64 = ["../../pkg/windows_amd64/nomad.exe"]
4 changes: 2 additions & 2 deletions e2e/terraform/volumes.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ data "template_file" "ebs_volume_hcl" {
count = var.volumes ? 1 : 0
template = <<EOT
type = "csi"
id = "ebs-vol0"
name = "ebs-vol0"
id = "ebs-vol[0]"
name = "ebs-vol"
external_id = "${aws_ebs_volume.csi[0].id}"
access_mode = "single-node-writer"
attachment_mode = "file-system"
Expand Down

0 comments on commit 3ff2917

Please sign in to comment.