Skip to content

Commit 6c16765

Browse files
dimscartermckinnon
andauthored
avoid hard coding provisioner index array
Co-authored-by: Carter <cartermckinnon@gmail.com>
1 parent 342418d commit 6c16765

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hack/transform-al2-to-al2023.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fi
1818
cat "${PACKER_TEMPLATE_FILE}" \
1919
| jq '._comment = "All template variables are enumerated here; and most variables have a default value defined in eks-worker-al2023-variables.json"' \
2020
| jq '.variables.temporary_key_pair_type = "ed25519"' \
21-
| jq 'del(.provisioners[5])' \
21+
| jq '.provisioners |= map(select(.script//empty|endswith("upgrade_kernel.sh")|not))' \
2222
> "${PACKER_TEMPLATE_FILE/al2/al2023}"
2323

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

0 commit comments

Comments
 (0)