Skip to content

Commit

Permalink
test: bump pinned AMIs for 1.31 (#7136)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Oct 1, 2024
1 parent 1552084 commit cf96bee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/suites/ami/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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()))
Expand Down

0 comments on commit cf96bee

Please sign in to comment.