mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Add HostNetworking container option to API.
This allows a container to run within the same networking namespace as the host. This will be locked down by default using a flag on the master and nodes (similar to how privileged is handled today).
This commit is contained in:
@@ -462,6 +462,7 @@ func init() {
|
||||
}
|
||||
out.DNSPolicy = DNSPolicy(in.DNSPolicy)
|
||||
out.Version = "v1beta2"
|
||||
out.HostNetwork = in.HostNetwork
|
||||
return nil
|
||||
},
|
||||
func(in *ContainerManifest, out *newer.PodSpec, s conversion.Scope) error {
|
||||
@@ -475,6 +476,7 @@ func init() {
|
||||
return err
|
||||
}
|
||||
out.DNSPolicy = newer.DNSPolicy(in.DNSPolicy)
|
||||
out.HostNetwork = in.HostNetwork
|
||||
return nil
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user