Skip to content

Commit

Permalink
fix: check nativecronjobs
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Jul 22, 2024
1 parent d3580e1 commit 268d559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legacy/build-deploy-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ beginBuildStep "Cronjob Cleanup" "cleaningUpCronjobs"
CURRENT_CRONJOBS=$(kubectl -n ${NAMESPACE} get cronjobs --no-headers | cut -d " " -f 1 | xargs)
MATCHED_CRONJOB=false
DELETE_CRONJOBS=()
# NATIVE_CRONJOB_CLEANUP_ARRAY is calculated in a prior step, when cronjobs are generated by the build-deploy-tool, this will need to be re-calculated using the tool
NATIVE_CRONJOB_CLEANUP_ARRAY=$(build-deploy-tool identify native-cronjobs | jq -r '.[]')
for SINGLE_NATIVE_CRONJOB in $CURRENT_CRONJOBS; do
for CLEANUP_NATIVE_CRONJOB in ${NATIVE_CRONJOB_CLEANUP_ARRAY[@]}; do
if [ "${SINGLE_NATIVE_CRONJOB}" == "${CLEANUP_NATIVE_CRONJOB}" ]; then
Expand Down

0 comments on commit 268d559

Please sign in to comment.