From bcbe7087aab520dc6605f4eb9a1e916d0fb717d3 Mon Sep 17 00:00:00 2001 From: Abiola Ibrahim Date: Tue, 29 Oct 2024 16:20:16 +0100 Subject: [PATCH] containerd: notify user for unsupported update command Signed-off-by: Abiola Ibrahim --- environment/container/containerd/containerd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/environment/container/containerd/containerd.go b/environment/container/containerd/containerd.go index 7771ec86..0129777c 100644 --- a/environment/container/containerd/containerd.go +++ b/environment/container/containerd/containerd.go @@ -3,6 +3,7 @@ package containerd import ( "context" _ "embed" + "fmt" "path/filepath" "time" @@ -103,5 +104,5 @@ func (c containerdRuntime) Version(ctx context.Context) string { } func (c *containerdRuntime) Update(ctx context.Context) error { - return nil + return fmt.Errorf("update not supported for the %s runtime", Name) }