Skip to content

Commit

Permalink
cri, containerd: update stub types
Browse files Browse the repository at this point in the history
containerd has recently started to use `typeurl.Any` as the value type
of the `container.Extensions` attribute. As such, since we stub the
container interface, we need to adapt our stub implementation.

Signed-off-by: Miguel Duarte Barroso <mdbarroso@redhat.com>
  • Loading branch information
maiqueb committed Apr 20, 2023
1 parent 77a8373 commit bc1bc10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cri/containerd/fake/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/containerd/containerd/cio"
"github.com/containerd/containerd/containers"
"github.com/containerd/containerd/oci"
"github.com/gogo/protobuf/types"
"github.com/containerd/typeurl/v2"
"github.com/opencontainers/runtime-spec/specs-go"
)

Expand Down Expand Up @@ -114,8 +114,8 @@ func (Container) SetLabels(context.Context, map[string]string) (map[string]strin
return map[string]string{}, nil
}

func (Container) Extensions(context.Context) (map[string]types.Any, error) {
return map[string]types.Any{}, nil
func (Container) Extensions(context.Context) (map[string]typeurl.Any, error) {
return map[string]typeurl.Any{}, nil
}

func (Container) Update(context.Context, ...containerd.UpdateContainerOpts) error {
Expand Down

0 comments on commit bc1bc10

Please sign in to comment.