From 6067ccb0ac34d462946b4bb765ad7c985b2886c4 Mon Sep 17 00:00:00 2001 From: Jason Deal Date: Tue, 1 Oct 2024 10:58:38 -0700 Subject: [PATCH] test: bump pinned AMIs for 1.31 (#7136) --- test/suites/ami/suite_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/suites/ami/suite_test.go b/test/suites/ami/suite_test.go index 7ab83cb377c5..8ac10a874339 100644 --- a/test/suites/ami/suite_test.go +++ b/test/suites/ami/suite_test.go @@ -87,7 +87,7 @@ var _ = Describe("AMI", func() { }) It("should use the most recent AMI when discovering multiple", func() { // choose an old static image that will definitely have an older creation date - oldCustomAMI := env.GetAMIBySSMPath(fmt.Sprintf("/aws/service/eks/optimized-ami/%[1]s/amazon-linux-2023/x86_64/standard/amazon-eks-node-al2023-x86_64-standard-%[1]s-v20240514/image_id", env.K8sVersion())) + oldCustomAMI := env.GetAMIBySSMPath(fmt.Sprintf("/aws/service/eks/optimized-ami/%[1]s/amazon-linux-2023/x86_64/standard/amazon-eks-node-al2023-x86_64-standard-%[1]s-v20240514/image_id", env.K8sVersionWithOffset(1))) nodeClass.Spec.AMIFamily = lo.ToPtr(v1.AMIFamilyAL2023) nodeClass.Spec.AMISelectorTerms = []v1.AMISelectorTerm{ {ID: customAMI}, @@ -168,12 +168,12 @@ var _ = Describe("AMI", func() { env.ExpectCreatedNodeCount("==", 1) }, Entry("AL2023 (latest)", "al2023@latest"), - Entry("AL2023 (pinned)", "al2023@v20240807"), + Entry("AL2023 (pinned)", "al2023@v20240928"), Entry("AL2 (latest)", "al2@latest"), - Entry("AL2 (pinned)", "al2@v20240807"), + Entry("AL2 (pinned)", "al2@v20240928"), Entry("Bottlerocket (latest)", "bottlerocket@latest"), - Entry("Bottlerocket (pinned with v prefix)", "bottlerocket@v1.21.0"), - Entry("Bottlerocket (pinned without v prefix)", "bottlerocket@1.21.0"), + Entry("Bottlerocket (pinned with v prefix)", "bottlerocket@v1.24.0"), + Entry("Bottlerocket (pinned without v prefix)", "bottlerocket@1.24.0"), ) It("should support Custom AMIFamily with AMI Selectors", func() { al2023AMI := env.GetAMIBySSMPath(fmt.Sprintf("/aws/service/eks/optimized-ami/%s/amazon-linux-2023/x86_64/standard/recommended/image_id", env.K8sVersion()))