Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRUD Suite] Delete extra subnet before deleting cluster #7248

Merged
merged 13 commits into from
Nov 3, 2023
5 changes: 5 additions & 0 deletions integration/tests/crud/creategetdelete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,11 @@ var _ = Describe("(Integration) Create, Get, Scale & Delete", func() {
})

var _ = SynchronizedAfterSuite(func() {}, func() {
// before deleting the cluster, first delete the additional subnet
ec2 := awsec2.NewFromConfig(NewConfig(params.Region))
_, err := ec2.DeleteSubnet(context.Background(), &awsec2.DeleteSubnetInput{SubnetId: &extraSubnetID})
Expect(err).NotTo(HaveOccurred())

Expect(params.EksctlDeleteCmd.WithArgs(
"cluster", params.ClusterName,
"--wait",
Expand Down
Loading