Skip to content

Commit 6f04e62

Browse files
yuanwang04k8s-publishing-bot
authored andcommitted
Implement restartPod action
Kubernetes-commit: 83c5cd5526fd0dbbaadbd530cabf38e5df578102
1 parent 16a1b56 commit 6f04e62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/v1/types.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3530,6 +3530,8 @@ const (
35303530
// If both PodResizePending and PodResizeInProgress are set, it means that a new resize was
35313531
// requested in the middle of a previous pod resize that is still in progress.
35323532
PodResizeInProgress PodConditionType = "PodResizeInProgress"
3533+
// AllContainersRestarting indicates that all containers of the pod is being restarted.
3534+
AllContainersRestarting PodConditionType = "AllContainersRestarting"
35333535
)
35343536

35353537
// These are reasons for a pod's transition to a condition.
@@ -3666,7 +3668,8 @@ type ContainerRestartRuleAction string
36663668

36673669
// The only valid action is Restart.
36683670
const (
3669-
ContainerRestartRuleActionRestart ContainerRestartRuleAction = "Restart"
3671+
ContainerRestartRuleActionRestart ContainerRestartRuleAction = "Restart"
3672+
ContainerRestartRuleActionRestartAllContainers ContainerRestartRuleAction = "RestartAllContainers"
36703673
)
36713674

36723675
// ContainerRestartRuleOnExitCodes describes the condition

0 commit comments

Comments
 (0)