Context
Kratix creates Jobs with a default restart policy. We've been asked to make the policy configurable per pipeline so that Promise writers can better debug when Job fails, or just have finer controls.
Acceptance Criteria
Scenario: customization
Given a promise with pipelines and users set the restart policy
When a pipeline Job is created
Then the Job has the provided restart policy
Scenario: not set
Given a promise with pipelines and users does not set the restart policy
When a pipeline Job is created
Then the Job has the previous default restart policy
Context
Kratix creates Jobs with a default restart policy. We've been asked to make the policy configurable per pipeline so that Promise writers can better debug when Job fails, or just have finer controls.
Acceptance Criteria