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
Update annotation
  • Loading branch information
mrodm committed May 7, 2025
commit f30e89a04083fea0a5396934256372fe8c519142
4 changes: 3 additions & 1 deletion .buildkite/scripts/cloud-cleanup-oidc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ DRY_RUN="$(buildkite-agent meta-data get DRY_RUN --default "${DRY_RUN:-"true"}")
resources_to_delete=0

COMMAND="validate"
redshift_message=""
if [[ "${DRY_RUN}" != "true" ]]; then
# TODO: to be changed to "destroy --confirm" once it can be tested
# that filters work as expected
COMMAND="plan"
redshift_message=" - stale redshift clusters will be deleted"
else
COMMAND="plan"
fi

buildkite-agent annotate \
"[${BUILDKITE_STEP_KEY}] Running DRY_RUN (${DRY_RUN}) using cloud-reaper command \"${COMMAND}\"" \
"[${BUILDKITE_STEP_KEY}] Running DRY_RUN (${DRY_RUN}) using cloud-reaper command \"${COMMAND}\"${redshift_message}" \
--context "ctx-cloud-reaper-info" \
--style "info"

Expand Down
4 changes: 3 additions & 1 deletion .buildkite/scripts/cloud-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,18 @@ DRY_RUN="$(buildkite-agent meta-data get DRY_RUN_DEPRECATED --default "${DRY_RUN
resources_to_delete=0

COMMAND="validate"
redshift_message=""
if [[ "${DRY_RUN}" != "true" ]]; then
# TODO: to be changed to "destroy --confirm" once it can be tested
# that filters work as expected
COMMAND="plan"
redshift_message=" - stale redshift clusters will be deleted"
else
COMMAND="plan"
fi

buildkite-agent annotate \
"[${BUILDKITE_STEP_KEY}] Running DRY_RUN (${DRY_RUN}) using cloud-reaper command \"${COMMAND}\"" \
"[${BUILDKITE_STEP_KEY}] Running DRY_RUN (${DRY_RUN}) using cloud-reaper command \"${COMMAND}\"${redshift_message}" \
--context "ctx-cloud-reaper-info-deprecated" \
--style "info"

Expand Down