Merge pull request #11529 from ningmingxiao/v2.0_fix

[release/2.0] Fix incorrect runtime name being passed to NRI
This commit is contained in:
Derek McGowan 2025-03-13 23:58:57 +08:00 committed by GitHub
commit 76db0585af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,6 @@ package nri
import ( import (
"context" "context"
"fmt" "fmt"
"path"
"sync" "sync"
"github.com/containerd/log" "github.com/containerd/log"
@ -117,7 +116,7 @@ func New(cfg *Config) (API, error) {
} }
var ( var (
name = path.Base(version.Package) name = version.Name
version = version.Version version = version.Version
opts = cfg.toOptions() opts = cfg.toOptions()
syncFn = l.syncPlugin syncFn = l.syncPlugin

View File

@ -19,6 +19,7 @@ package version
import "runtime" import "runtime"
var ( var (
Name = "containerd"
// Package is filled at linking time // Package is filled at linking time
Package = "github.com/containerd/containerd/v2" Package = "github.com/containerd/containerd/v2"