sandbox: fix sandbox logPath when crio restarts
We weren't setting the logPath of the sandbox when restoring sandboxes and containers upon a crio restarts. That means that if you restart CRI-O you get sandboxes with empty logPath. That means that when you're starting a container in a restored sandbox you get a relative logPath for the container: sandboxLogPath: "/var/something" - restore sandboxLogPath: "" - create container foo containerLogPath: "foo_attempt.log" With this patch we actually get an absolute path (which is correct): sandboxLogPath: "/var/something" - restore sandboxLogPath: "/var/something" - create container foo containerLogPath: "/var/something/foo_attempt.log" Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
28997fe4cd
commit
a0157078ad
4 changed files with 21 additions and 9 deletions
|
@ -19,6 +19,9 @@ const (
|
|||
// HostName is the container host name annotation
|
||||
HostName = "io.kubernetes.cri-o.HostName"
|
||||
|
||||
// CgroupParent is the sandbox cgroup parent
|
||||
CgroupParent = "io.kubernetes.cri-o.CgroupParent"
|
||||
|
||||
// IP is the container ipv4 or ipv6 address
|
||||
IP = "io.kubernetes.cri-o.IP"
|
||||
|
||||
|
@ -49,6 +52,9 @@ const (
|
|||
// Name is the pod name annotation
|
||||
Name = "io.kubernetes.cri-o.Name"
|
||||
|
||||
// Namespace is the pod namespace annotation
|
||||
Namespace = "io.kubernetes.cri-o.Namespace"
|
||||
|
||||
// PrivilegedRuntime is the annotation for the privileged runtime path
|
||||
PrivilegedRuntime = "io.kubernetes.cri-o.PrivilegedRuntime"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue