Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions integration/tests/custom_ami/custom_ami_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ var (
customAMIAL2 string
customAMIAL2023 string
customAMIBottlerocket string
customAMIUbuntuPro2004 string
customAMIUbuntuPro2204 string
customAMIUbuntuPro2404 string
)
Expand Down Expand Up @@ -81,14 +80,6 @@ var _ = BeforeSuite(func() {
Expect(err).NotTo(HaveOccurred())
customAMIBottlerocket = *output.Parameter.Value

// retrieve Ubuntu Pro 20.04 AMI
input = &awsssm.GetParameterInput{
Name: aws.String(fmt.Sprintf("/aws/service/canonical/ubuntu/eks-pro/20.04/%s/stable/current/amd64/hvm/ebs-gp2/ami-id", params.Version)),
}
output, err = ssm.GetParameter(context.Background(), input)
Expect(err).NotTo(HaveOccurred())
customAMIUbuntuPro2004 = *output.Parameter.Value

// retrieve Ubuntu Pro 22.04 AMI
input = &awsssm.GetParameterInput{
Name: aws.String(fmt.Sprintf("/aws/service/canonical/ubuntu/eks-pro/22.04/%s/stable/current/amd64/hvm/ebs-gp2/ami-id", params.Version)),
Expand Down Expand Up @@ -183,28 +174,6 @@ var _ = Describe("(Integration) [Test Custom AMI]", func() {

})

Context("ubuntu-pro-2004 un-managed nodegroups", func() {

It("can create a working nodegroup which can join the cluster", func() {
By(fmt.Sprintf("using the following EKS optimised AMI: %s", customAMIUbuntuPro2004))
content, err := os.ReadFile(filepath.Join("testdata/ubuntu-pro-2004.yaml"))
Expect(err).NotTo(HaveOccurred())
content = bytes.ReplaceAll(content, []byte("<generated>"), []byte(params.ClusterName))
content = bytes.ReplaceAll(content, []byte("<generated-region>"), []byte(params.Region))
content = bytes.ReplaceAll(content, []byte("<generated-ami>"), []byte(customAMIUbuntuPro2204))
cmd := params.EksctlCreateCmd.
WithArgs(
"nodegroup",
"--config-file", "-",
"--verbose", "4",
).
WithoutArg("--region", params.Region).
WithStdin(bytes.NewReader(content))
Expect(cmd).To(RunSuccessfully())
})

})

Context("ubuntu-pro-2204 un-managed nodegroups", func() {

It("can create a working nodegroup which can join the cluster", func() {
Expand Down
Loading