Skip to content

Commit

Permalink
avoid hard coding provisioner index array
Browse files Browse the repository at this point in the history
Co-authored-by: Carter <cartermckinnon@gmail.com>
  • Loading branch information
dims and cartermckinnon authored Jul 10, 2023
1 parent 342418d commit 6c16765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/transform-al2-to-al2023.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
cat "${PACKER_TEMPLATE_FILE}" \
| jq '._comment = "All template variables are enumerated here; and most variables have a default value defined in eks-worker-al2023-variables.json"' \
| jq '.variables.temporary_key_pair_type = "ed25519"' \
| jq 'del(.provisioners[5])' \
| jq '.provisioners |= map(select(.script//empty|endswith("upgrade_kernel.sh")|not))' \
> "${PACKER_TEMPLATE_FILE/al2/al2023}"

# use newer versions of containerd and runc, do not install docker
Expand Down

0 comments on commit 6c16765

Please sign in to comment.