mirror of
https://github.com/wazuh/wazuh-kubernetes.git
synced 2025-12-10 16:46:36 -06:00
Add a function for delete all volumes used
This commit is contained in:
parent
04be563df2
commit
1a4089fefd
12
.github/workflows/deployment-test.yml
vendored
12
.github/workflows/deployment-test.yml
vendored
@ -200,6 +200,18 @@ jobs:
|
||||
--name ${{ env.CLUSTER_NAMME }} \
|
||||
--region ${{ env.AWS_REGION }}
|
||||
|
||||
- name: Delete EBS dynamic volumes
|
||||
if: always()
|
||||
run: |
|
||||
for volume_id in $(aws ec2 describe-volumes \
|
||||
--region ${{ env.AWS_REGION }} \
|
||||
--filters Name=tag:Name,Values="${{ env.CLUSTER_NAMME }}" \
|
||||
--query "Volumes[].VolumeId" \
|
||||
--output text); do
|
||||
echo "Eliminando volumen con ID: $volume_id"
|
||||
## aws ec2 delete-volume --region ${{ env.AWS_REGION }} --volume-id $volume_id
|
||||
done
|
||||
|
||||
Local_deployment_test:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user