Skip to content

Commit 6c6eac5

Browse files
authored
Merge pull request containerd#10410 from everpeace/kep-3619-runtimestatus-features-supplemental_groups_policy
KEP-3619: Implement RuntimeStatus.features.supplemental_groups_policy in CRI
2 parents bfb2a35 + 81ef465 commit 6c6eac5

File tree

82 files changed

+1408
-11383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1408
-11383
lines changed

go.mod

+7-8
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ require (
7272
golang.org/x/mod v0.19.0
7373
golang.org/x/sync v0.7.0
7474
golang.org/x/sys v0.22.0
75-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240520151616-dc85e6b867a5
76-
google.golang.org/grpc v1.64.0
75+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094
76+
google.golang.org/grpc v1.65.0
7777
google.golang.org/protobuf v1.34.2
7878
k8s.io/apimachinery v0.30.2
7979
k8s.io/client-go v0.30.2
8080
k8s.io/component-base v0.30.2
81-
k8s.io/cri-api v0.31.0-alpha.0.0.20240529224029-3a66d9d86654
81+
k8s.io/cri-api v0.31.0-beta.0.0.20240716205706-865479a3e1b3
8282
k8s.io/klog/v2 v2.130.1
8383
k8s.io/kubelet v0.30.2
8484
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
@@ -88,7 +88,7 @@ require (
8888
require (
8989
github.com/beorn7/perks v1.0.1 // indirect
9090
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
91-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
91+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
9292
github.com/cilium/ebpf v0.11.0 // indirect
9393
github.com/containers/ocicrypt v1.2.0 // indirect
9494
github.com/cpuguy83/go-md2man/v2 v2.0.4 // indirect
@@ -130,13 +130,12 @@ require (
130130
go.opentelemetry.io/proto/otlp v1.2.0 // indirect
131131
golang.org/x/crypto v0.24.0 // indirect
132132
golang.org/x/exp v0.0.0-20231214170342-aacd6d4b4611 // indirect
133-
golang.org/x/net v0.25.0 // indirect
134-
golang.org/x/oauth2 v0.18.0 // indirect
133+
golang.org/x/net v0.26.0 // indirect
134+
golang.org/x/oauth2 v0.20.0 // indirect
135135
golang.org/x/term v0.21.0 // indirect
136136
golang.org/x/text v0.16.0 // indirect
137137
golang.org/x/time v0.3.0 // indirect
138-
google.golang.org/appengine v1.6.8 // indirect
139-
google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 // indirect
138+
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 // indirect
140139
gopkg.in/inf.v0 v0.9.1 // indirect
141140
gopkg.in/yaml.v2 v2.4.0 // indirect
142141
gopkg.in/yaml.v3 v3.0.1 // indirect

go.sum

+16-38
Large diffs are not rendered by default.

internal/cri/server/service.go

+6
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ type criService struct {
156156
sandboxService sandboxService
157157
// runtimeHandlers contains runtime handler info
158158
runtimeHandlers []*runtime.RuntimeHandler
159+
// runtimeFeatures container runtime features info
160+
runtimeFeatures *runtime.RuntimeFeatures
159161
}
160162

161163
type CRIServiceOptions struct {
@@ -244,6 +246,10 @@ func NewCRIService(options *CRIServiceOptions) (CRIService, runtime.RuntimeServi
244246
return nil, nil, fmt.Errorf("failed to introspect runtime handlers: %w", err)
245247
}
246248

249+
c.runtimeFeatures = &runtime.RuntimeFeatures{
250+
SupplementalGroupsPolicy: true,
251+
}
252+
247253
return c, c, nil
248254
}
249255

internal/cri/server/status.go

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func (c *criService) Status(ctx context.Context, r *runtime.StatusRequest) (*run
5858
networkCondition,
5959
}},
6060
RuntimeHandlers: c.runtimeHandlers,
61+
Features: c.runtimeFeatures,
6162
}
6263
if r.Verbose {
6364
configByt, err := json.Marshal(c.config)

vendor/github.com/cespare/xxhash/v2/README.md

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/xxhash.go

+22-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/xxhash_asm.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/xxhash_other.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/xxhash_safe.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/xxhash_unsafe.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/net/http2/http2.go

+13-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)