mirror of
https://github.com/containerd/containerd.git
synced 2026-08-08 17:11:15 +00:00
Merge pull request #13914 from k8s-infra-cherrypick-robot/cherry-pick-13162-to-release/2.3
[release/2.3] Set the default of runtimeFeatures.UserNamespacesHostNetwork to true
This commit is contained in:
@@ -21,6 +21,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
goruntime "runtime"
|
||||
"slices"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
@@ -281,7 +282,8 @@ func NewCRIService(options *CRIServiceOptions) (CRIService, runtime.RuntimeServi
|
||||
}
|
||||
|
||||
c.runtimeFeatures = &runtime.RuntimeFeatures{
|
||||
SupplementalGroupsPolicy: true,
|
||||
SupplementalGroupsPolicy: true,
|
||||
UserNamespacesHostNetwork: goruntime.GOOS == "linux",
|
||||
}
|
||||
|
||||
if c.config.EnableCDI != nil && !*c.config.EnableCDI {
|
||||
|
||||
Reference in New Issue
Block a user