mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
fix typo in kuberuntime_manager.go
This commit is contained in:
parent
8fecbd8eca
commit
503ac59abe
@ -546,7 +546,7 @@ func (m *kubeGenericRuntimeManager) killContainer(pod *v1.Pod, containerID kubec
|
|||||||
pod, containerSpec = restoredPod, restoredContainer
|
pod, containerSpec = restoredPod, restoredContainer
|
||||||
}
|
}
|
||||||
|
|
||||||
// From this point , pod and container must be non-nil.
|
// From this point, pod and container must be non-nil.
|
||||||
gracePeriod := int64(minimumGracePeriodInSeconds)
|
gracePeriod := int64(minimumGracePeriodInSeconds)
|
||||||
switch {
|
switch {
|
||||||
case pod.DeletionGracePeriodSeconds != nil:
|
case pod.DeletionGracePeriodSeconds != nil:
|
||||||
|
@ -377,7 +377,7 @@ type containerToKillInfo struct {
|
|||||||
type podActions struct {
|
type podActions struct {
|
||||||
// Stop all running (regular and init) containers and the sandbox for the pod.
|
// Stop all running (regular and init) containers and the sandbox for the pod.
|
||||||
KillPod bool
|
KillPod bool
|
||||||
// Whether need to create a new sandbox. If needed to kill pod and create a
|
// Whether need to create a new sandbox. If needed to kill pod and create
|
||||||
// a new pod sandbox, all init containers need to be purged (i.e., removed).
|
// a new pod sandbox, all init containers need to be purged (i.e., removed).
|
||||||
CreateSandbox bool
|
CreateSandbox bool
|
||||||
// The id of existing sandbox. It is used for starting containers in ContainersToStart.
|
// The id of existing sandbox. It is used for starting containers in ContainersToStart.
|
||||||
|
Loading…
Reference in New Issue
Block a user