mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 03:11:40 +00:00
kubelet: Fix log typo when killing a container
Signed-off-by: Rodrigo Campos <rodrigo@kinvolk.io>
This commit is contained in:
parent
d9f09b98bb
commit
82856541fb
@ -642,10 +642,10 @@ func (m *kubeGenericRuntimeManager) killContainer(pod *v1.Pod, containerID kubec
|
|||||||
}
|
}
|
||||||
if gracePeriodOverride != nil {
|
if gracePeriodOverride != nil {
|
||||||
gracePeriod = *gracePeriodOverride
|
gracePeriod = *gracePeriodOverride
|
||||||
klog.V(3).Infof("Killing container %q, but using %d second grace period override", containerID, gracePeriod)
|
klog.V(3).Infof("Killing container %q, but using a %d second grace period override", containerID, gracePeriod)
|
||||||
}
|
}
|
||||||
|
|
||||||
klog.V(2).Infof("Killing container %q with %d second grace period", containerID.String(), gracePeriod)
|
klog.V(2).Infof("Killing container %q with a %d second grace period", containerID.String(), gracePeriod)
|
||||||
|
|
||||||
err := m.runtimeService.StopContainer(containerID.ID, gracePeriod)
|
err := m.runtimeService.StopContainer(containerID.ID, gracePeriod)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user