Skip to content

Commit

Permalink
test: added dataplatform to cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rmocanu-ionos committed Jan 22, 2024
1 parent 802cdd0 commit f888bab
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/cleanup/delete-all-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@


# load delete functions
source ./delete-dataplatform-resources.sh
source ./delete-backup-resources.sh
source ./delete-dbaas-resources.sh
source ./delete-user-management-resources.sh
Expand All @@ -18,6 +19,9 @@ source ./delete-nlb-resources.sh
source ./print-utils.sh


echo_step "starting cleanup on Data Platform resources"
delete_dataplatform_resources

echo_step "starting cleanup on Managed Backup resources"
delete_backup_resources

Expand Down
15 changes: 15 additions & 0 deletions .github/scripts/cleanup/delete-dataplatform-resources.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# ENV Vars:
# IONOS_USERNAME - username for IONOS Cloud APIs
# IONOS_PASSWORD - password for IONOS Cloud APIs
# IONOS_TOKEN - token for IONOS Cloud APIs

delete_all_args='--all --force'

function delete_dataplatform_resources() {
ionosctl dataplatform nodepool delete $delete_all_args -W
ionosctl dataplatform cluster delete $delete_all_args -W

echo_step_completed
}
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
IONOS_USERNAME: ${{ secrets.IONOS_USER_V6 }}
IONOS_PASSWORD: ${{ secrets.IONOS_PASSWORD_V6 }}
IONOS_TOKEN: ${{ secrets.IONOS_TOKEN_V6 }}
IONOSCTL_VERSION: 6.1.7
IONOSCTL_VERSION: 6.7.4
steps:
- name: Checking out module-ansible
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
IONOS_USERNAME: ${{ secrets.IONOS_USER_V6 }}
IONOS_PASSWORD: ${{ secrets.IONOS_PASSWORD_V6 }}
IONOS_TOKEN: ${{ secrets.IONOS_TOKEN_V6 }}
IONOSCTL_VERSION: 6.1.7
IONOSCTL_VERSION: 6.7.4
steps:
- name: Checking out module-ansible
uses: actions/checkout@v2
Expand Down

0 comments on commit f888bab

Please sign in to comment.