Merge pull request #1346 from stevvooe/disallow-runtime-update

metadata: disallow changing the runtime of an existing container
This commit is contained in:
Michael Crosby 2017-08-14 15:15:43 -04:00 committed by GitHub
commit dbb63b636b

View File

@ -164,9 +164,6 @@ func (s *containerStore) Update(ctx context.Context, container containers.Contai
updated.Labels = container.Labels updated.Labels = container.Labels
case "image": case "image":
updated.Image = container.Image updated.Image = container.Image
case "runtime":
// TODO(stevvooe): Should this actually be allowed?
updated.Runtime = container.Runtime
case "spec": case "spec":
updated.Spec = container.Spec updated.Spec = container.Spec
case "rootfs": case "rootfs":