Skip to content

Commit

Permalink
[CRUD Suite] Delete extra subnet before deleting cluster (#7248)
Browse files Browse the repository at this point in the history
* Improve CRUD suite runtime~

* refactor to use ginkgo decorators

* fix IAM service account

* change cluster name

* remove duplicate cluster workloads test

* refactor describe stacks test

* [CRUD integration] Add wait flag to delete cluster command

* delete additional subnet

* fix typo

Co-authored-by: Chetan Patwal <[email protected]>

* small refactor to trigger workflows

---------

Co-authored-by: Chetan Patwal <[email protected]>
  • Loading branch information
TiberiuGC and cPu1 committed Nov 3, 2023
1 parent dc79dfe commit c402580
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit c402580

Please sign in to comment.