CRI: Remove the mount name and port name.

Per discussion on https://github.com/kubernetes/kubernetes/issues/33873.

Currently the mount name is not being used and also involves some
incorrect usage (sometimes it's referencing a mount name, sometimes
it's referecing a volume name), so we decide to remove it from CRI.

The port name is also not used, so remove it as well.
This commit is contained in:
Yifan Gu
2016-10-03 13:40:18 -07:00
parent d26b4ca285
commit be4e825ac3
5 changed files with 197 additions and 222 deletions

View File

@@ -235,7 +235,6 @@ func (ds *dockerService) ContainerStatus(containerID string) (*runtimeApi.Contai
m := r.Mounts[i]
readonly := !m.RW
mounts = append(mounts, &runtimeApi.Mount{
Name: &m.Name,
HostPath: &m.Source,
ContainerPath: &m.Destination,
Readonly: &readonly,