File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
docs/modules/ROOT/pages/framework Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ In accordance to the https://git.vshn.net/aline.abler/scriptofdoom[scriptofdoom.
1313while read -r cronjob rest
1414do
1515 echo $cronjob
16- kubectl --as cluster- admin -n syn-appcat create job --from cronjob/$cronjob $cronjob --dry-run -oyaml | yq e '.spec.template.spec.containers[0].args[0] = "appuio-reporting report --timerange 1h --begin=$(date -d \"now -12 hours\" -u +\"%Y-%m-%dT%H:00:00Z\") --repeat-until=$(date -u +\"%Y-%m-%dT%H:00:00Z\")"' | kubectl --as cluster- admin apply -f -
17- done <<< "$(kubectl --as cluster- admin -n syn-appcat get cronjobs.batch --no-headers)"
16+ kubectl --as=system: admin -n syn-appcat create job --from cronjob/$cronjob $cronjob --dry-run -oyaml | yq e '.spec.template.spec.containers[0].args[0] = "appuio-reporting report --timerange 1h --begin=$(date -d \"now -12 hours\" -u +\"%Y-%m-%dT%H:00:00Z\") --repeat-until=$(date -u +\"%Y-%m-%dT%H:00:00Z\")"' | kubectl --as=system: admin apply -f -
17+ done <<< "$(kubectl --as=system: admin -n syn-appcat get cronjobs.batch --no-headers)"
1818----
1919
2020This will loop over all the billing cronjobs in the `syn-appcat`, create a new job from them and replace the args with whatever we want.
You can’t perform that action at this time.
0 commit comments