Skip to content

Commit

Permalink
fix(action): populate all fields of Job from CronJob (argoproj#15259) (
Browse files Browse the repository at this point in the history
…argoproj#15727)

Signed-off-by: sergey.ladutko <[email protected]>
Co-authored-by: sergey.ladutko <[email protected]>
Signed-off-by: jmilic1 <[email protected]>
  • Loading branch information
2 people authored and jmilic1 committed Nov 13, 2023
1 parent 184d670 commit 3ab9ba9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ ownerRef.uid = obj.metadata.uid
job.metadata.ownerReferences = {}
job.metadata.ownerReferences[1] = ownerRef

job.spec = {}
job.spec.suspend = false
job.spec.template = {}
job.spec.template.metadata = deepCopy(obj.spec.jobTemplate.spec.template.metadata)
job.spec.template.spec = deepCopy(obj.spec.jobTemplate.spec.template.spec)
job.spec = deepCopy(obj.spec.jobTemplate.spec)

local impactedResource = {}
impactedResource.operation = "create"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ spec:
annotations:
my: annotation
spec:
ttlSecondsAfterFinished: 100
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
annotations:
my: annotation
spec:
ttlSecondsAfterFinished: 100
template:
metadata:
labels:
Expand Down

0 comments on commit 3ab9ba9

Please sign in to comment.