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:
Maksym Pavlenko
2026-08-07 10:23:48 -07:00
committed by GitHub

View File

@@ -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 {