Skip to content

Commit

Permalink
containerd: notify user for unsupported update command
Browse files Browse the repository at this point in the history
Signed-off-by: Abiola Ibrahim <git@abiosoft.com>
  • Loading branch information
abiosoft committed Oct 29, 2024
1 parent 3317db1 commit bcbe708
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion environment/container/containerd/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package containerd
import (
"context"
_ "embed"
"fmt"
"path/filepath"
"time"

Expand Down Expand Up @@ -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)
}

0 comments on commit bcbe708

Please sign in to comment.