HostNetwork is now inlined in the pod spec

This commit is contained in:
Alfonso Acosta
2017-06-28 16:26:14 +00:00
parent 8bbbf25809
commit 7d59936d8c

View File

@@ -65,7 +65,7 @@ func (p *pod) GetNode(probeID string) report.Node {
report.ControlProbeID: probeID,
}
if sc := p.Pod.Spec.SecurityContext; sc != nil && sc.HostNetwork {
if p.Pod.Spec.HostNetwork {
latests[IsInHostNetwork] = "true"
}