mirror of https://github.com/k3s-io/k3s
commit
a08c88532c
|
@ -686,7 +686,7 @@ func (kl *Kubelet) runContainer(pod *api.BoundPod, container *api.Container, pod
|
||||||
// TODO: Clean up the previouly created dir? return the error?
|
// TODO: Clean up the previouly created dir? return the error?
|
||||||
glog.Errorf("Error on creating termination-log file %q: %v", containerLogPath, err)
|
glog.Errorf("Error on creating termination-log file %q: %v", containerLogPath, err)
|
||||||
} else {
|
} else {
|
||||||
defer fs.Close()
|
fs.Close() // Close immediately; we're just doing a `touch` here
|
||||||
b := fmt.Sprintf("%s:%s", containerLogPath, container.TerminationMessagePath)
|
b := fmt.Sprintf("%s:%s", containerLogPath, container.TerminationMessagePath)
|
||||||
binds = append(binds, b)
|
binds = append(binds, b)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue