Skip to content

Commit 3b1a101

Browse files
Merge pull request volcano-sh#143 from bibibox/add_action
Add RestartPod action for pod reschedule
2 parents 1309efc + ed24a54 commit 3b1a101

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/apis/bus/v1alpha1/actions.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)