Skip to content

Commit

Permalink
feat: add pod backoff failure policy (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Italo Santos authored Feb 27, 2021
1 parent 7b799d0 commit c20d08f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/cmd/kubernetes/job/bpf.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func (b *bpfCreator) create(targetPod *apiv1.Pod, cfg *data.FlameConfig) (string
Parallelism: int32Ptr(1),
Completions: int32Ptr(1),
TTLSecondsAfterFinished: int32Ptr(5),
BackoffLimit: int32Ptr(2),
Template: apiv1.PodTemplateSpec{
ObjectMeta: commonMeta,
Spec: apiv1.PodSpec{
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/kubernetes/job/jvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func (c *jvmCreator) create(targetPod *apiv1.Pod, cfg *data.FlameConfig) (string
Parallelism: int32Ptr(1),
Completions: int32Ptr(1),
TTLSecondsAfterFinished: int32Ptr(5),
BackoffLimit: int32Ptr(2),
Template: apiv1.PodTemplateSpec{
ObjectMeta: commonMeta,
Spec: apiv1.PodSpec{
Expand Down
1 change: 1 addition & 0 deletions cli/cmd/kubernetes/job/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (p *pythonCreator) create(targetPod *apiv1.Pod, cfg *data.FlameConfig) (str
Parallelism: int32Ptr(1),
Completions: int32Ptr(1),
TTLSecondsAfterFinished: int32Ptr(5),
BackoffLimit: int32Ptr(2),
Template: apiv1.PodTemplateSpec{
ObjectMeta: commonMeta,
Spec: apiv1.PodSpec{
Expand Down

0 comments on commit c20d08f

Please sign in to comment.