mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Adds ReadOnlyRootFilesystem support for containers
This commit is contained in:
@@ -2827,6 +2827,12 @@ func autoConvert_api_SecurityContext_To_v1_SecurityContext(in *api.SecurityConte
|
||||
} else {
|
||||
out.RunAsNonRoot = nil
|
||||
}
|
||||
if in.ReadOnlyRootFilesystem != nil {
|
||||
out.ReadOnlyRootFilesystem = new(bool)
|
||||
*out.ReadOnlyRootFilesystem = *in.ReadOnlyRootFilesystem
|
||||
} else {
|
||||
out.ReadOnlyRootFilesystem = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -5936,6 +5942,12 @@ func autoConvert_v1_SecurityContext_To_api_SecurityContext(in *SecurityContext,
|
||||
} else {
|
||||
out.RunAsNonRoot = nil
|
||||
}
|
||||
if in.ReadOnlyRootFilesystem != nil {
|
||||
out.ReadOnlyRootFilesystem = new(bool)
|
||||
*out.ReadOnlyRootFilesystem = *in.ReadOnlyRootFilesystem
|
||||
} else {
|
||||
out.ReadOnlyRootFilesystem = nil
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user