Skip to content

Commit 9d90324

Browse files
Merge pull request #134345 from yuanwang04/restart-pod
Implement RestartAllContainers Kubernetes-commit: 462ee14a36f7f3f11b03bf7cb072351740271443
2 parents 16a1b56 + 6f04e62 commit 9d90324

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)