KEP-3619: implement features.supplemental_groups_policy in RuntimeStatus
Signed-off-by: Shingo Omura <everpeace@gmail.com>
This commit is contained in:
parent
bfb2a355b0
commit
ee2c0d9e74
@ -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
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user