KEP-3619: implement features.supplemental_groups_policy in RuntimeStatus

Signed-off-by: Shingo Omura <everpeace@gmail.com>
This commit is contained in:
Shingo Omura 2024-07-02 11:51:31 +09:00
parent bfb2a355b0
commit ee2c0d9e74
No known key found for this signature in database
2 changed files with 7 additions and 0 deletions

View File

@ -156,6 +156,8 @@ type criService struct {
sandboxService sandboxService
// runtimeHandlers contains runtime handler info
runtimeHandlers []*runtime.RuntimeHandler
// runtimeFeatures container runtime features info
runtimeFeatures *runtime.RuntimeFeatures
}
type CRIServiceOptions struct {
@ -244,6 +246,10 @@ func NewCRIService(options *CRIServiceOptions) (CRIService, runtime.RuntimeServi
return nil, nil, fmt.Errorf("failed to introspect runtime handlers: %w", err)
}
c.runtimeFeatures = &runtime.RuntimeFeatures{
SupplementalGroupsPolicy: true,
}
return c, c, nil
}

View File

@ -58,6 +58,7 @@ func (c *criService) Status(ctx context.Context, r *runtime.StatusRequest) (*run
networkCondition,
}},
RuntimeHandlers: c.runtimeHandlers,
Features: c.runtimeFeatures,
}
if r.Verbose {
configByt, err := json.Marshal(c.config)