-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for cleaning Azure resources
Signed-off-by: Kyle Squizzato <ksquizzato@mirantis.com>
- Loading branch information
Showing
10 changed files
with
64 additions
and
15 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
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
7 changes: 3 additions & 4 deletions
7
config/dev/cloud_nuke.yaml.tpl → config/dev/aws-cloud-nuke.yaml.tpl
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,26 @@ | ||
# This config file is used by azure-nuke to clean up named resources associated | ||
# with a specific managed cluster across an Azure account. CLUSTER_NAME is | ||
# typically the metadata.name of the ManagedCluster. | ||
# This will nuke the ResourceGroup affiliated with the ManagedCluster. | ||
# | ||
# Usage: | ||
# 'CLUSTER_NAME=foo AZURE_REGION=westus3 AZURE_TENANT_ID=12345 make dev-azure-nuke' | ||
# | ||
# Check cluster names with 'kubectl get managedcluster.hmc.mirantis.com -n hmc-system' | ||
|
||
regions: | ||
- global | ||
- ${AZURE_REGION} | ||
|
||
resource-types: | ||
includes: | ||
- ResourceGroup | ||
|
||
accounts: | ||
${AZURE_TENANT_ID}: | ||
filters: | ||
__global__: | ||
- ResourceGroup: | ||
type: "glob" | ||
value: "${CLUSTER_NAME}*" | ||
invert: true |
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
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
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