Description
Checklist:
- I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- I've included steps to reproduce the bug.
- I've pasted the output of
argocd version
.
Describe the bug
As expected from the action, it should create a Job from CronJob as it does kubectl create job --from=<CRON_JOB_NAME>
command. But all of a sudden I noticed, that Jobs, created by the action, don't have appropriate jobTemplate.spec
, while Jobs, created by kubectl create job --from=<CRON_JOB_NAME>
- do have.
In my example, I was trying to set ttlSecondsAfterFinished
to jobTemplate.spec
, and noticed unexpected behavior. Maybe the reason is the 50th sting in action.lua file
To Reproduce
Add ttlSecondsAfterFinished
to CronJob's jobTemplate.spec
and trigger the action "Create Job". You will see no ttlSecondsAfterFinished
in created Job's spec
.
Expected behavior
Created by the action "Create Job" Job should be the same as created by kubectl create job --from=<CRON_JOB_NAME>
Screenshots
No screenshots attached.
Version
v2.8.0+804d4b8
Logs
No logs added.
Activity