Skip to content

Commit d23d6a9

Browse files
committed
Switch to github.com/containerd/typeurl/v2
1 parent bdb1376 commit d23d6a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ws-daemon/pkg/container/containerd.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/containerd/containerd/api/types"
2121
"github.com/containerd/containerd/containers"
2222
"github.com/containerd/containerd/errdefs"
23-
"github.com/containerd/typeurl"
23+
"github.com/containerd/typeurl/v2"
2424
ocispecs "github.com/opencontainers/runtime-spec/specs-go"
2525
"github.com/opentracing/opentracing-go"
2626
"golang.org/x/xerrors"
@@ -499,7 +499,7 @@ var kubepodsRegexp = regexp.MustCompile(`([^/]+)-pod`)
499499
// in a container's OCI spec.
500500
func ExtractCGroupPathFromContainer(container containers.Container) (cgroupPath string, err error) {
501501
var spec ocispecs.Spec
502-
err = json.Unmarshal(container.Spec.Value, &spec)
502+
err = json.Unmarshal(container.Spec.GetValue(), &spec)
503503
if err != nil {
504504
return
505505
}

0 commit comments

Comments
 (0)