From 765f81b3025a68c4e0405734c8af2d9cf12ca3a6 Mon Sep 17 00:00:00 2001 From: Rahul Desai Date: Thu, 11 Apr 2024 14:38:03 -0700 Subject: [PATCH 1/3] install the correct version of cri-tools --- sysbox-eks.pkr.hcl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sysbox-eks.pkr.hcl b/sysbox-eks.pkr.hcl index b096d6a..20a2c01 100644 --- a/sysbox-eks.pkr.hcl +++ b/sysbox-eks.pkr.hcl @@ -210,7 +210,12 @@ build { "sudo apt-get update", "echo Installing CRI-O", - "sudo apt-get install --yes --no-install-recommends cri-o cri-o-runc cri-tools", + "sudo apt-get install --yes --no-install-recommends cri-o cri-o-runc", + + "export CRICTL_VERSION='v{var.k8s_version}.0'", + "wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-$CRICTL_VERSION-linux-amd64.tar.gz", + "sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin", + "rm -f crictl-$CRICTL_VERSION-linux-amd64.tar.gz", "echo Enabling CRI-O at startup", "sudo systemctl enable crio" From e53196d6ff4f6219c1920d0240717b71ded9922c Mon Sep 17 00:00:00 2001 From: Rahul Desai Date: Thu, 11 Apr 2024 15:11:40 -0700 Subject: [PATCH 2/3] fix string formatting --- sysbox-eks.pkr.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysbox-eks.pkr.hcl b/sysbox-eks.pkr.hcl index 20a2c01..98acfb4 100644 --- a/sysbox-eks.pkr.hcl +++ b/sysbox-eks.pkr.hcl @@ -212,7 +212,7 @@ build { "echo Installing CRI-O", "sudo apt-get install --yes --no-install-recommends cri-o cri-o-runc", - "export CRICTL_VERSION='v{var.k8s_version}.0'", + "export CRICTL_VERSION='v${var.k8s_version}.0'", "wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-$CRICTL_VERSION-linux-amd64.tar.gz", "sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin", "rm -f crictl-$CRICTL_VERSION-linux-amd64.tar.gz", From 1c110d5ad9e04814c390fc29ae17889b44256459 Mon Sep 17 00:00:00 2001 From: Rahul Desai Date: Thu, 11 Apr 2024 15:20:48 -0700 Subject: [PATCH 3/3] use long form param name --- sysbox-eks.pkr.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysbox-eks.pkr.hcl b/sysbox-eks.pkr.hcl index 98acfb4..43819cf 100644 --- a/sysbox-eks.pkr.hcl +++ b/sysbox-eks.pkr.hcl @@ -215,7 +215,7 @@ build { "export CRICTL_VERSION='v${var.k8s_version}.0'", "wget https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-$CRICTL_VERSION-linux-amd64.tar.gz", "sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin", - "rm -f crictl-$CRICTL_VERSION-linux-amd64.tar.gz", + "rm --force crictl-$CRICTL_VERSION-linux-amd64.tar.gz", "echo Enabling CRI-O at startup", "sudo systemctl enable crio"