Skip to content

Commit

Permalink
updating active cronjob variable
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 committed Feb 17, 2025
1 parent f85acaf commit d0117f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen3/bin/gitops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ update_cronjob() {
gen3_gitops_update_all_cron_jobs() {

# List of cronjobs
local active_cronjobs=$(kubectl get cronjobs -o custom-columns=":metadata.name" | grep -v '^$')
local active_cronjobs=$(g3kubectl get cronjobs -o custom-columns=":metadata.name" | awk 'NF {print "\"" $0 "\""}' | paste -sd " ")

# Loop through each cronjob and check/update if needed
for cronjob in "${active_cronjobs[@]}"; do
Expand Down

0 comments on commit d0117f8

Please sign in to comment.