You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I noticed that when I trigger cronjob via ArgoCD, it creates job with default jobTemplate.spec values.
See this kubectl explain cronjob.spec.jobTemplate.spec
When I trigger it via kubernetes, all works well.
Checklist:
argocd version
.Describe the bug
Hi!
I noticed that when I trigger cronjob via ArgoCD, it creates job with default
jobTemplate.spec
values.See this
kubectl explain cronjob.spec.jobTemplate.spec
When I trigger it via kubernetes, all works well.
I researched and found that lua script is the root cause of this issue: https://github.com/argoproj/argo-cd/blob/master/resource_customizations/batch/CronJob/actions/create-job/action.lua#L50-L54
There are no lines to configure whole
jobTemplate.spec
. There are only two lines that configuresdeepCopy(obj.spec.jobTemplate.spec.template.metadata)
anddeepCopy(obj.spec.jobTemplate.spec.template.spec)
.I'm not a pro in lua and I don't know syntax, but I know that this is the root cause:)
To Reproduce
jobTemplate.spec
:\
\
It doesn't contain our custom
jobTemplate.spec
paramethers:\
Expected behavior
jobTemplate.spec
in job defined the same as in cronjob.Version
Logs
No relevant logs, you can see all stuff on screenshots.
The text was updated successfully, but these errors were encountered: