Skip to content

Commit e6b177f

Browse files
committed
containerd: notify user for unsupported update command
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
1 parent da7140e commit e6b177f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

environment/container/containerd/containerd.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package containerd
33
import (
44
"context"
55
_ "embed"
6+
"fmt"
67
"path/filepath"
78
"time"
89

@@ -103,5 +104,5 @@ func (c containerdRuntime) Version(ctx context.Context) string {
103104
}
104105

105106
func (c *containerdRuntime) Update(ctx context.Context) error {
106-
return nil
107+
return fmt.Errorf("update not supported for the %s runtime", Name)
107108
}

0 commit comments

Comments
 (0)