Skip to content

Commit

Permalink
Introduce new variable for EBS CSI driver version to decouple it from…
Browse files Browse the repository at this point in the history
… Agent version
  • Loading branch information
mythri-garaga committed Nov 17, 2023
1 parent 598499e commit a14c3c5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion al2.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ build {
script = "scripts/install-managed-daemons.sh"
environment_vars = [
"REGION=${var.region}",
"AGENT_VERSION=${var.ecs_agent_version}",
"CSI_DRIVER_VERSION=${var.csi_driver_version}",
"AIR_GAPPED=${var.air_gapped}",
"MANAGED_DAEMON_BASE_URL=${var.managed_daemon_base_url}"
]
Expand Down
2 changes: 1 addition & 1 deletion al2023.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ build {
script = "scripts/install-managed-daemons.sh"
environment_vars = [
"REGION=${var.region}",
"AGENT_VERSION=${var.ecs_agent_version}",
"CSI_DRIVER_VERSION=${var.csi_driver_version}",
"AIR_GAPPED=${var.air_gapped}",
"MANAGED_DAEMON_BASE_URL=${var.managed_daemon_base_url}"
]
Expand Down
1 change: 1 addition & 0 deletions generate-release-vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ readonly ami_name_al2_kernel5dot10arm ami_name_al2_kernel5dot10 ami_name_al2_arm
cat >|release.auto.pkrvars.hcl <<EOF
ami_version = "$ami_version"
ecs_agent_version = "$agent_version"
csi_driver_version = "$agent_version"
ecs_init_rev = "$ecs_init_rev"
docker_version = "20.10.25"
docker_version_al2023 = "20.10.25"
Expand Down
1 change: 1 addition & 0 deletions release.auto.pkrvars.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ami_version = "20231103"
ecs_agent_version = "1.79.0"
ebs_driver_version = "1.79.0"
ecs_init_rev = "1"
docker_version = "20.10.25"
docker_version_al2023 = "20.10.25"
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-managed-daemons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ case "$ARCH" in
esac

# Install CSI driver managed daemon
CSI_DRIVER_FILENAME="ebs-csi-driver${ARCH_MOD}-v$AGENT_VERSION.tar"
CSI_DRIVER_FILENAME="ebs-csi-driver${ARCH_MOD}-v$CSI_DRIVER_VERSION.tar"
CSI_DRIVER_FULL_URL="${MANAGED_DAEMON_BASE_URL}${CSI_DRIVER_FILENAME}"

curl -fLSs -o "$WORK_DIR/${CSI_DRIVER_FILENAME}" "$CSI_DRIVER_FULL_URL"
Expand Down
5 changes: 5 additions & 0 deletions variables.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ variable "ecs_agent_version" {
description = "ECS agent version to build AMI with."
}

variable "csi_driver_version" {
type = string
description = "EBS CSI driver version to build AMI with."
}

variable "ecs_init_rev" {
type = string
description = "ecs-init package version rev"
Expand Down

0 comments on commit a14c3c5

Please sign in to comment.