Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restore plan for cloud-reaper
  • Loading branch information
mrodm committed May 7, 2025
commit bb930ec33ad0c552b788fd4ba9e1797568f5e413
6 changes: 4 additions & 2 deletions .buildkite/scripts/cloud-cleanup-oidc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ resources_to_delete=0

COMMAND="validate"
if [[ "${DRY_RUN}" != "true" ]]; then
COMMAND="destroy --confirm"
# TODO: to be changed to "destroy --confirm" once it can be tested
# that filters work as expected
COMMAND="plan"
else
COMMAND="plan"
fi
Expand All @@ -49,7 +51,7 @@ any_resources_to_delete() {
# ✓ Succeeded to load configuration
# Scanning resources... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

# FIXME:: When running with DRY_RUN: false there could be more lines.
# FIXME:: When running with "destroy --confirm" there could be more lines.
# In the case, there is nothing to delete, there is one more line:
# ⇒ Nothing to destroy !
# but there are no examples when resources are deleted to add the required logic
Expand Down
6 changes: 4 additions & 2 deletions .buildkite/scripts/cloud-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ resources_to_delete=0

COMMAND="validate"
if [[ "${DRY_RUN}" != "true" ]]; then
COMMAND="destroy --confirm"
# TODO: to be changed to "destroy --confirm" once it can be tested
# that filters work as expected
COMMAND="plan"
else
COMMAND="plan"
fi
Expand All @@ -49,7 +51,7 @@ any_resources_to_delete() {
# ✓ Succeeded to load configuration
# Scanning resources... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

# FIXME:: When running with DRY_RUN: false there could be more lines.
# FIXME:: When running with "destroy --confirm" command there could be more lines.
# In the case, there is nothing to delete, there is one more line:
# ⇒ Nothing to destroy !
# but there are no examples when resources are deleted to add the required logic
Expand Down