From d7689418ed8a69d39e39ef347ed43628f79ab202 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Fri, 11 Aug 2017 16:18:23 -0700 Subject: [PATCH] metadata: disallow changing the runtime of an existing container This could render tasks for a container unresolvalbe. If there is a use case for changing the runtime of a container, we should think it through carefully. Signed-off-by: Stephen J Day --- metadata/containers.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/metadata/containers.go b/metadata/containers.go index 6061cd48f..5b1e1a6e3 100644 --- a/metadata/containers.go +++ b/metadata/containers.go @@ -164,9 +164,6 @@ func (s *containerStore) Update(ctx context.Context, container containers.Contai updated.Labels = container.Labels case "image": updated.Image = container.Image - case "runtime": - // TODO(stevvooe): Should this actually be allowed? - updated.Runtime = container.Runtime case "spec": updated.Spec = container.Spec case "rootfs":