mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #25719 from tmrts/rk8s/read-only-rootfs
Automatic merge from submit-queue Use read-only root filesystem capabilities of rkt Propagates `api.Container.SecurityContext.ReadOnlyRootFileSystem` flag to rkt container runtime. cc @yifan-gu Fixes #23837
This commit is contained in:
commit
e7022106ff
@ -784,9 +784,10 @@ func (r *Runtime) newAppcRuntimeApp(pod *api.Pod, c api.Container, requiresPrivi
|
||||
}
|
||||
|
||||
ra := appcschema.RuntimeApp{
|
||||
Name: convertToACName(c.Name),
|
||||
Image: appcschema.RuntimeImage{ID: *hash},
|
||||
App: imgManifest.App,
|
||||
Name: convertToACName(c.Name),
|
||||
Image: appcschema.RuntimeImage{ID: *hash},
|
||||
App: imgManifest.App,
|
||||
ReadOnlyRootFS: *c.SecurityContext.ReadOnlyRootFilesystem,
|
||||
Annotations: []appctypes.Annotation{
|
||||
{
|
||||
Name: *appctypes.MustACIdentifier(k8sRktContainerHashAnno),
|
||||
|
Loading…
Reference in New Issue
Block a user