sandbox: record whether sb is using host network

We need to record whether the sandbox is using hostnetwok because the
kubelet needs that information when computing pod changes. Without this
patch it could happen that a pod that's using host network is restarted
just because the sandbox's status isn't reporting that it's running
using host network.

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2018-02-13 11:45:31 +01:00
parent 9128ffc226
commit ab204b6641
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9
5 changed files with 27 additions and 0 deletions

View file

@ -25,6 +25,9 @@ const (
// IP is the container ipv4 or ipv6 address
IP = "io.kubernetes.cri-o.IP"
// HostNetwork tells whether the sandbox is using hostnetwork
HostNetwork = "io.kubernetes.cri-o.HostNetwork"
// SeccompProfilePath is the node seccomp profile path
SeccompProfilePath = "io.kubernetes.cri-o.SeccompProfilePath"