Skip to content

Commit ee2c0d9

Browse files
committed
KEP-3619: implement features.supplemental_groups_policy in RuntimeStatus
Signed-off-by: Shingo Omura <[email protected]>
1 parent bfb2a35 commit ee2c0d9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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)

0 commit comments

Comments
 (0)