-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use testhook to enforce ordered deletion
- Loading branch information
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
set -aeuo pipefail | ||
|
||
# Note(mbbush): AWS IoT uses the IAM role assigned to the TopicRuleDestination during deletion | ||
# of the TopicRuleDestination to remove the ENIs and other resources it created in the VPC. | ||
# Deletion of the TopicRuleDestination takes several minutes, and if the role is deleted before | ||
# it finishes, then it doesn't have permission to remove the ENIs, so the VPC deletion fails | ||
# because there are still resources left in it. This ordered deletion requirement could be | ||
# encoded in a crossplane Usage resource, but that's still alpha and not readily available | ||
# in the current uptest config. This also solves the problem. | ||
${KUBECTL} delete topicruledestination.iot.aws.upbound.io/iot-topic-rule-destination-example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters