File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,16 @@ const (
2828 // RestartJobAction if this action is set, the whole job will be restarted
2929 RestartJobAction Action = "RestartJob"
3030
31- // RestartTaskAction if this action is set, only the task will be restarted; default action.
31+ // RestartTaskAction if this action is set, only the task will be restarted
32+ // It means that all pods under the task will be deleted and recreated.
3233 // This action can not work together with job level events, e.g. JobUnschedulable
3334 RestartTaskAction Action = "RestartTask"
3435
36+ // RestartPodAction if this action is set, only the pod will be restarted
37+ // It means that only the pod corresponding to the event will be deleted and recreated.
38+ // This action can just work together with pod level events, e.g. PodFailed
39+ RestartPodAction Action = "RestartPod"
40+
3541 // TerminateJobAction if this action is set, the whole job wil be terminated
3642 // and can not be resumed: all Pod of Job will be evicted, and no Pod will be recreated.
3743 TerminateJobAction Action = "TerminateJob"
You can’t perform that action at this time.
0 commit comments