Merge pull request #6706 from kzys/typeurl-upgrade
Use typeurl.Any instead of github.com/gogo/protobuf/types.Any
This commit is contained in:
@@ -280,7 +280,7 @@ var infoCommand = cli.Command{
|
||||
return nil
|
||||
}
|
||||
|
||||
if info.Spec != nil && info.Spec.Value != nil {
|
||||
if info.Spec != nil && info.Spec.GetValue() != nil {
|
||||
v, err := typeurl.UnmarshalAny(info.Spec)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -42,7 +42,7 @@ func RemoveCniNetworkIfExist(ctx context.Context, container containerd.Container
|
||||
return nil
|
||||
}
|
||||
|
||||
data, err := typeurl.UnmarshalAny(&networkMeta)
|
||||
data, err := typeurl.UnmarshalAny(networkMeta)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to unmarshal cni metadata extension %s", commands.CtrCniMetadataExtension)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user